← Back to issue list

--debug drops me into an unexpected directory

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1917639
Type
issue
State
open
Author
~racb
Labels
Created
2021-03-03 15:49:32.239864+00:00
Updated
2021-03-18 13:17:14.841806+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

In override-stage, I specified "exit 1" to deliberately cause --debug to stop me there. However it put me in /root, not the directory the shell script runs in. Expected: exactly the same directory as the override-stage script: working directory, environment variables, everything. This bug is for the current directory. There's also bug 1848513 for missing environment variables, and bug 1848732 for a missing snapcraftctl command. installed: 4.5.1 (6050) 71MB classic

Evaluation history

No evaluation history available.