-
Notifications
You must be signed in to change notification settings - Fork 371
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
common-utils
overwrites .zshrc
coming from image built with common-utils
already
#1035
Comments
I think I found something, when I add "ghcr.io/devcontainers/features/common-utils:latest": {
"installOhMyZsh": false,
"installOhMyZshConfig": false,
"configureZshAsDefaultShell": true
} IT is not overwriting the "ghcr.io/devcontainers/features/common-utils:latest": {
"installOhMyZsh": true,
"installOhMyZshConfig": true,
"configureZshAsDefaultShell": true
} Overwrites it. So, I think the bug lives in this snippet. |
Specifically, this line overwrites the |
So, the issue is as follows: in echo 'eval "$(rbenv init -)"' >> /home/vscode/.zshrc
eval "$(rbenv init -)" |
Hi 👋 Thanks for reporting! @gauravsaini04 / @prathameshzarkar9 Can either of you look into fixing the bug? |
Hi @samruddhikhandale , I have created a PR to fix this issue: PR 1069 |
Hi @samruddhikhandale , |
Closing as fixed with #1069. Feel free to reopen if needed, thanks! |
I think the changes to resolve this has broken devcontainers using I have had to specify |
Thanks for letting us know, I have reverted the changes. See #1094 @prathameshzarkar9 Can you take a look at the issue and merge the changes with the fix? |
Hi @Mark-J-Lawrence , |
Hi @samruddhikhandale , |
{
"name": "cics-security-sdv-samples Container",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"settings": {
"vsintellicode.java.completionsEnabled": false,
"vsintellicode.python.completionsEnabled": false,
"vsintellicode.sql.completionsEnabled": false,
"vsintellicode.typescript.completionsEnabled": false,
"vsintellicode.modify.editor.suggestSelection": "disabled",
"errorLens.onSave": true,
"errorLens.messageEnabled": true,
"versionlens.suggestions.showOnStartup": true,
"editor.formatOnSave": true,
"ansible.python.interpreterPath": "/usr/local/python/current/bin/python",
"pylint.interpreter": [
"/usr/local/python/current/bin/python"
],
"eslint.workingDirectories": [
"./docs",
"./lib"
],
"stylelint.validate": [
"css",
"scss"
],
"stylelint.configBasedir": "./docs"
},
"extensions": [
"dbaeumer.vscode-eslint",
"usernamehw.errorlens",
"igorsbitnev.error-gutters",
"wayou.vscode-todo-highlight",
"pflannery.vscode-versionlens",
"bierner.markdown-emoji",
"redhat.ansible",
"ms-python.flake8",
"gruntfuggly.todo-tree",
"ms-python.python",
"ms-python.pylint",
"stylelint.vscode-stylelint"
]
}
},
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "18"
},
"ghcr.io/devcontainers/features/python:1": {
"version": "3.12"
}
},
"forwardPorts": [
3000,
3001
],
"privileged": true,
"remoteUser": "root",
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces,type=bind",
"workspaceFolder": "/workspaces",
"postStartCommand": "git config --global --add safe.directory /workspaces; git config commit.gpgsign false",
"postAttachCommand": "/post_script/initialise_dev_container.sh"
} |
@prathameshzarkar9 this is what's in the # Install approval bot dependencies
npm install
# Install docs dependencies
cd docs
npm install
cd ..
# Install Ansible tooling
pip install ansible==10.2.0 ansible-lint==24.7.0 --root-user-action=ignore
# Install ansible script dependencies
cd ansible-sdv-pipeline
pip install -r requirements.txt --root-user-action=ignore |
Hi @Mark-J-Lawrence , |
@prathameshzarkar9 sure....
|
@prathameshzarkar9 Can you look at the latest details and continue investigation? |
Hi @samruddhikhandale , |
Completed with #1111 |
I'm using
rails/ruby
image, which already usescommon-utils
. But I want to override some options like making Zsh the default shell and install OhMyZsh. When I add:To my
devcontainer.json
, thiscommon-utils
usage overwrites the.zshrc
coming fromrails/ruby
image, which should not happen based on thiscommon-utils
script.Any thoughts why this could happen?
The text was updated successfully, but these errors were encountered: