when there's a syntax error in a scriptlet, it shows the name of the temp file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Sergio Schvezov |
Bug Description
When there's a syntax error in a scriptlet, it shows the name of the temp file which is not useful at all to find the error.
To reproduce:
Put a part with this in a snapcraft.yaml
plugin: nil
prepare: |
echo "hola" &&
There is a syntax error at the end of prepare because it's missing the second statement.
Run snapcraft:
$ snapcraft
Preparing to pull my-part
Pulling my-part
Preparing to build my-part
Building my-part
/tmp/tmpnpz33nrs: 2: /tmp/tmpnpz33nrs: Syntax error: end of file unexpected
Command '['/bin/sh', '/tmp/tmpgasuc_zd', '/tmp/tmpnpz33n
Instead of showing the name of the tmp file, the error should point to the prepare scriptlet in the yaml.
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Sergio Schvezov (sergiusens) |
Changed in snapcraft: | |
milestone: | none → 2.35 |
Changed in snapcraft: | |
status: | Triaged → Fix Released |
ahh, I was searching on the wrong tag :)