-
-
Notifications
You must be signed in to change notification settings - Fork 763
Open
Labels
state: needs triageWaiting to be triaged by a maintainer.Waiting to be triaged by a maintainer.
Description
When upgrading to ubuntu 24.04 and using a python venv in a task using the builtin shell, an error occurs.
This error is because the built-in shell in go-task does not honour the 'hash' command and the python3 devs removed the conditional check in the 'activate' command.
- Task version: 3.37.2
- Operating system: ubuntu 24.04
- Experiments enabled: no
This was mitigated by explicitly using bash.
Example
something:
desc: runs the something command - does not work
deps: [venv]
cmds:
- |
source venvs/avid-scripts/bin/activate
trap deactivate EXIT
python3 -m something --option value
Fix:
something:
desc: runs the something command - does work
deps: [venv]
cmds:
- |
bash <<EOF
source venvs/avid-scripts/bin/activate
trap deactivate EXIT
python3 -m something --option value
EOF
waarg, andrewimeson, jfhovinne and rodrigo-pena
Metadata
Metadata
Assignees
Labels
state: needs triageWaiting to be triaged by a maintainer.Waiting to be triaged by a maintainer.