-
Notifications
You must be signed in to change notification settings - Fork 5.9k
PATH environment variable overwritten in version 4.0.1 using Docker image #4699
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
Comments
@code-asher any ideas what might have been introduced that would modify the |
I took a short look but nothing stood out in particular. We will need
to dig in a bit more.
|
i have configured git hooks. if i can't set the PATH correctly my hooks dont work and i cant use vscode git gui. i tried to set the PATH system wide
checked it works with
its ok. it prints the desired version of the path but i see no changes in vscode terminal.
and my git hooks still doent work :( anybody has a workarround ? EDIT: |
our workaround for the time being :
which sets the correct |
OS/Web Information
code-server --version
: 4.0.1Steps to Reproduce
The problem can be reproduced by building the following minimal Docker image :
and running it as a local server in the browser as explained in the installation guide.
Expected
When opening a terminal in VSCode, the value of
$PATH
should be the same as the one echoed at the end of thedocker build
step. The behavior is correct when building the image fromcode-server:3.12.0
.Actual
When building from
code-server:4.0.1
, the$PATH
variable gets overwritten with the following path/usr/lib/code-server/vendor/modules/code-oss-dev/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
. If I run an interactive shell in the docker image usingdocker exec
, the$PATH
is as expected. But when opening VSCode in the browser, it is incorrect. I don't see any command in theentrypoint.sh
script which modifies this variable.Thank's for this great software.
The text was updated successfully, but these errors were encountered: