-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment Variable replaced at Runtime #1366
Comments
Hey @ldoguin, thanks for reporting the issue, we'll take a look! |
I'll drop in with my observations, as I think I'm seeing something similar. I've started debugging this more closely: My test {
"name": "debugging devpod's PATH problem",
"image": "ghcr.io/yacoob/interactive:base",
"containerEnv": {
"PATH": "/containerEnv/marker:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"MARKER": "container"
},
"remoteEnv": {
"PATH": "/remoteEnv/marker:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"MARKER": "remote"
},
"securityOpt": ["label=disable"],
"remoteUser": "yacoob",
"containerUser": "yacoob"
} Test:
This strongly suggests that:
This is not totally unexpected, as traditional ssh also sanitizes @pascalbreuninger any idea where that sanitization for |
Further evidence:
Looks like |
One more thing: a (crude) workaround for me was to symlink the binaries I was missing into
Not ideal, but does the trick in the meantime. Correct fix (IMO) is to change devpod to honour |
What happened?
I am setting up different variables to find binaries like
And unfortunately the
/home/gitpod
part is replaced by/workspace
so all my binaries are not in the PATH anymore.What did you expect to happen instead?
This works fine with codespace,
How can we reproduce the bug? (as minimally and precisely as possible)
You can reproduce by opening this repo in devpod and searching for go, tinygo, wit or other executable installed with Cargo: https://github.com/vados-cosmonic/wasmcon2024-couchbase-workshop/
The text was updated successfully, but these errors were encountered: