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
--- python:hello failed with error: Task exited with status: exit status: 1
--- python:hello stdout:
--- python:hello stderr:
0000.00: Traceback (most recent call last):
0000.00: File "/nix/store/54s3d671wvdnih712v7qszixim53n568-python-hello", line 2, in <module>
0000.00: set -e
0000.00: NameError: name 'e' is not defined
Problem seems to be that the generated script contains a rogue set -e:
❯ cat /nix/store/54s3d671wvdnih712v7qszixim53n568-python-hello
#!/nix/store/ibjjy3ab86hiib290mcrmmzghqqr4hg2-python3-3.8.13/bin/python3
set -e
print("Hello, world!")
The text was updated successfully, but these errors were encountered:
flaw
changed the title
Cannot run python code (or anything non-shell?) in a task or script
Cannot run python code (or anything non-shell?) in a taskDec 12, 2024
It seems it's not possible to run non-shell scripts in a
tasks:
entry.Given a config like
when I try to run it, I see:
Problem seems to be that the generated script contains a rogue
set -e
:The text was updated successfully, but these errors were encountered: