Open
Description
If the project is nested in a parent directory that contains a space, it will fail as the space will separate the path and thus will be interpreted as two (or more) parameters to fetch_pip_metadata.
Can be reproduced by renaming the python-project
(or any parent directory) to python project
and running nix run .#default.lock
/packages/single-language/python project on main [✘+] is 📦 v1.0.0 via 🐍
at 11:49 ❯ nix run .#default.lock
usage: fetch_pip_metadata [-h] --json-args-file JSON_ARGS_FILE --project-root PROJECT_ROOT
fetch_pip_metadata: error: unrecognized arguments: project
Traceback (most recent call last):
File "/nix/store/wvp0c85z9gnzq5cgi4dqq6cb389n057b-refresh/bin/refresh", line 37, in <module>
lock_data = run_refresh_scripts(refresh_scripts)
File "/nix/store/wvp0c85z9gnzq5cgi4dqq6cb389n057b-refresh/bin/refresh", line 33, in run_refresh_scripts
refresh_scripts[name] = run_refresh_script(value["script"])
File "/nix/store/wvp0c85z9gnzq5cgi4dqq6cb389n057b-refresh/bin/refresh", line 19, in run_refresh_script
subprocess.run(
File "/nix/store/pzf6dnxg8gf04xazzjdwarm7s03cbrgz-python3-3.10.12/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/nix/store/qi3s83wi9z1l0gc3bf7kpji0jrkhzgr7-script.sh']' returned non-zero exit status 2.
Metadata
Metadata
Assignees
Labels
No labels