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 — Hosted and vendored requirements.txt rewrites add a --hash to one line, which turns on pip's hash-checking mode and breaks `pip install -r` for every other unhashed line · Issue #376 · 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). SummaryWhen The scan reports The vendored writer's module doc already notes this behaviour ("any Impact
ReproThis uses a local mock of the patch API that serves a patched mkdir h && cd h && git init -q printf 'six==1.16.0\nidna==3.7\n' > requirements.txt export SOCKET_API_URL=http://127.0.0.1:18080 SOCKET_API_TOKEN=fake SOCKET_ORG_SLUG=test-org socket-patch scan --mode hosted --json --yes # status success, redirected 1, warnings [] cat requirements.txt # six @ http://127.0.0.1:18080/patch/pypi/six/1.16.0/<token>/<uuid>/six-1.16.0-py2.py3-none-any.whl --hash=sha256:063404c3… # idna==3.7 python -m venv v && v/bin/pip install -r requirements.txt # ERROR: Hashes are required in --require-hashes mode, but they are missing from some requirements. ... # idna==3.7 --hash=sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0 Vendored gives the same result (with socket-patch scan --mode vendored --json --yes # status success # requirements.txt: ./.socket/vendor/pypi/<uuid>/six-1.16.0-py2.py3-none-any.whl --hash=sha256:01663f71… # socket-patch vendor: six==1.16.0 # idna==3.7 pip install -r requirements.txt # same "Hashes are required" error As controls: a one-line Expected vs actual
OS × versionProbe run https://github.com/SocketDev/socket-patch/actions/runs/36771795909 (plus local Linux runs):
First bad releaseThe released 4.0.0 (from PyPI) reproduces in both modes. 3.3.0 has no hosted or vendored mode. Suspect code
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. |