fix(tools): anchor the release expected-library set to the repository #818
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/818"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by ebosido444-ai on 2026-10-06T06:36:24Z.
What
tools/package_release.pybuilds its expected-library guard fromPath("core/libs/prx"), resolved against the current working directory while everything else in the file anchors to--build. Invoked from anywhere but the repository root it crashes before the guard; worse, under a directory that happens to contain its owncore/libs/prx, the expected set silently shrinks and the "Missing patched libraries" check passes with libraries actually absent from the release. Anchored to the script location liketools/progress.py'sROOT.Tested
Windows 11, Python 3.14: run the module from an unrelated scratch directory — previously
FileNotFoundErrorbefore the guard, now the expected set resolves to the real repository libraries (the run proceeds to the intendedMissing patched librarieserror for the absent build). Assert check on the anchored path from a foreign CWD.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T07:36:01Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)tools/package_release.pyL13-14tools/package_release.pyL13-14Imported from boykopovar/AnyPS5. Originally posted by ebosido444-ai on 2026-10-06T07:46:02Z.
Closing in favour of #600, whose expected_libraries() already anchors to ROOT = Path(file).resolve().parent.parent — the same root-cause fix, inside a broader release rework that predates this. The foreign-CWD reproducer for the record: run python tools/package_release.py --platform linux --build bogus --version v1 --output out from any directory outside the repo — before either change it dies with FileNotFoundError on Path("core/libs/prx").iterdir(), after it reaches the intended Missing patched libraries error. Apologies for the duplicate-checklist miss; the pr-overlap report above caught it.
Pull request closed