fix(pm): import _MUSL_TARGETS where IronProxy resolves musl targets

security_packages.py referenced _MUSL_TARGETS without importing it, so
IronProxy.fetch_url raised NameError on linux-*-musl (the PR's own
test_portable_go_tools_resolve_the_generic_linux_archives caught it).
Review fix pushed to the contributor branch.
This commit is contained in:
teknium1
2026-09-26 17:27:07 -07:00
committed by Teknium
parent 8371dd17f6
commit 5cdfa0bde6

View File

@@ -11,7 +11,7 @@ from urllib.parse import urlparse
from pm import paths
from pm.lock import Lockfile
from pm.package import InstallError
from pm.packages import BinaryPackage, _RUST_TRIPLE
from pm.packages import BinaryPackage, _MUSL_TARGETS, _RUST_TRIPLE
from pm.registry import register
from pm.store import flatten_single_dir