mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: remove script runners from NonDownloadCommands lists (#242)
Script runners (run, start, stop, restart, test, etc.) are not package management commands — remove them so they go through the proxy instead of being skipped.
This commit is contained in:
@@ -62,10 +62,6 @@ func DefaultPoetryPackageManagerConfig() PypiPackageManagerConfig {
|
||||
return PypiPackageManagerConfig{
|
||||
InstallCommands: []string{"add"},
|
||||
NonDownloadCommands: []string{
|
||||
// Script runners — "run" executes a command in the venv (e.g., `poetry run uvicorn app:app`).
|
||||
// "shell" activates the venv shell. Both may start long-running processes and must not
|
||||
// have proxy env vars set against them.
|
||||
"run", "shell",
|
||||
// Removal
|
||||
"remove",
|
||||
// Inspection / read-only
|
||||
|
||||
Reference in New Issue
Block a user