You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For rules_uv >= 0.18.0, the create_venv.sh script fails with the error "bash site_packages_extra_files[@]: unbound variable" when site_packages_extra_files is not set. The root cause appears to be the -u option in set -u, which interprets ${site_packages_extra_files[@]} as unset.
How to reproduce: docker run -it --entrypoint bash bash:3.2.57 -c 'set -euo pipefail; for file in "${site_packages_extra_files[@]}"; do echo "test"; done;'
Solution:
check whether the variable site_packages_extra_files exists before executing the for loop.
The text was updated successfully, but these errors were encountered:
For rules_uv >= 0.18.0, the create_venv.sh script fails with the error
"bash site_packages_extra_files[@]: unbound variable"
when site_packages_extra_files is not set. The root cause appears to be the -u option in set -u, which interprets ${site_packages_extra_files[@]} as unset.How to reproduce:
docker run -it --entrypoint bash bash:3.2.57 -c 'set -euo pipefail; for file in "${site_packages_extra_files[@]}"; do echo "test"; done;'
Solution:
check whether the variable
site_packages_extra_files
exists before executing the for loop.The text was updated successfully, but these errors were encountered: