oliver-zehentleitner / maity

runner: venvs uses the skills bare fetch through one public function and one network environment list (pip loses ALL_PROXY today)

Sign in to report

tsk-x4vdrp4452x0 Proposed

Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. Kind: duplication with a behaviour difference.

What is wrong

  • venvs.py:85-96 (new in the range) repeats the git init --bare + fetch --depth 1 pair of skills.py:319-320 through the private skills._git.
  • venvs._run (venvs.py:115-132) copies skills._git's environment filter and its "last stderr line, 200 characters" error shape.
  • The two environment lists differ: venvs._PIP_ENV (venvs.py:53) has no all_proxy / ALL_PROXY, which skills._KEPT_ENV (skills.py:281-285) keeps. On a host that sets only ALL_PROXY, the fetch for the lock goes through the proxy and pip does not.

Proposal

  • A public bare-fetch function in skills (or a small gitfetch module) and one environment list for the runner's network calls, used by both.

Effort / risk: S. Low.