GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Lockfile-only `scan` ignores pins in requirements.txt `-r` includes, so a fresh checkout reports "No patches available" and installs unpatched (hosted and vendored) · Issue #412 · SocketDev/socket-patch Closed Labels agent:triagedbugSomething isn't workingSomething isn't workingbughuntFound by a scheduled package-manager bug-hunt agentFound by a scheduled package-manager bug-hunt agentpm:pippip / requirements.txtpip / requirements.txtpriority:p1 Description[agent] Found by the scheduled pip / requirements.txt bug-hunt routine (ledger #309). SummaryOn a checkout with no virtualenv yet (the usual CI / fresh-clone case), With an installed ImpactPatches are silently skipped for every dependency pinned in an included file on lockfile-only runs. The scan reports success, so nothing tells the user the pins were never looked at. ReproUses a local mock of the patch API that serves a patched A="--api-url http://127.0.0.1:8765 --api-token fake --org test-org --patch-server-url http://127.0.0.1:8765" mkdir -p p/requirements && cd p printf -- '-r requirements/base.txt\n' > requirements.txt printf 'six==1.16.0\n' > requirements/base.txt socket-patch scan --mode vendored --json $A | jq '{status, lockfileOnlyPackages, packages: [.packages[].purl]}' # {"status":"success","lockfileOnlyPackages":0,"packages":[]} socket-patch scan --json $A | jq '{status, lockfileOnlyPackages}' # hosted: same python -m venv v && v/bin/pip install -r requirements.txt && v/bin/python -c 'import six; print(getattr(six,"SOCKET_PATCHED",0))' # 0 → unpatched Control: the same pin written directly in
All Linux rows reproduced twice. Expected vs actual
For hosted mode, rewriting only the root file is documented: an installed pin found only in an include gets OS × version
First badNot a regression. v4.0.0 behaves the same: Suspect code
Probe run: https://github.com/SocketDev/socket-patch/actions/runs/36806309982 Activity
MetadataMetadataAssigneesLabelsagent:triagedbugSomething isn't workingSomething isn't workingbughuntFound by a scheduled package-manager bug-hunt agentFound by a scheduled package-manager bug-hunt agentpm:pippip / requirements.txtpip / requirements.txtpriority:p1 TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |