Skip to content

Conversation

@bboozzoo
Copy link
Contributor

Keep the original PATH when executing local scripts, such that repack/adhoc snippets which reference tools installed in custom locations are able to access them.

Keep the original PATH when executing local scripts, such that
repack/adhoc snippets which reference tools installed in custom
locations are able to access them.

Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
Copy link
Contributor

@zyga zyga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why /snap/bin is there but it's already better than the current broken behaviour.

@bboozzoo
Copy link
Contributor Author

I'm not sure why /snap/bin is there but it's already better than the current broken behaviour.

I'm guessing it's being added as a workaround for snapd (and thus /snap/bin) becoming available while the current shell is already executing a script that invokes spread. Most likely only relevant for some CI workflows, but I'd prefer to not break things for anyone and keep backward compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants