Fix envbuilder build failure from unset _REMOTE_USER_HOME during feature installs#29
Merged
Merged
Conversation
Copilot created this pull request from a session on behalf of
bmorton
June 19, 2026 17:07
View session
Copilot
AI
changed the title
Fix devcontainer install failure from kubectl postCreateCommand
Fix devcontainer startup failure and add CI that exercises it
Jun 19, 2026
Copilot
AI
changed the title
Fix devcontainer startup failure and add CI that exercises it
Fix Jun 19, 2026
devcontainer up failure caused by UID/GID remap collision with sshd feature
Copilot
AI
changed the title
Fix
Catch Coder/envbuilder startup failures in CI; pin dev container to node user
Jun 19, 2026
devcontainer up failure caused by UID/GID remap collision with sshd feature
Copilot
AI
changed the title
Catch Coder/envbuilder startup failures in CI; pin dev container to node user
Fix envbuilder build failure from unset _REMOTE_USER_HOME during feature installs
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Build EnvbuilderCI job fails while installing theclaude-codefeature:Coder builds workspaces with envbuilder, which injects only
_CONTAINER_USERand_REMOTE_USERinto featureinstall.shruns — never_REMOTE_USER_HOME. The feature's final step expands tocp /.local/bin/claude ...and aborts the build. The devcontainer CLI sets the variable, so only the envbuilder path breaks.Changes
.devcontainer/Dockerfile: declare the home-dir variables envbuilder omits, so feature installs can locate the target user's home:Why ARG
RUNsteps after this Dockerfile in the same stage, so the ARGs stay in scope and supply the missing values.ENV, ARGs don't persist into the running container's environment.Scope
Benefits any feature whose
install.shreads_REMOTE_USER_HOME/_CONTAINER_USER_HOME, not justclaude-code.