Skip to content

Fix guest PATH clobbered by /etc/profile and Claude native warning#83

Merged
JAORMX merged 1 commit intomainfrom
fix/guest-path-and-claude-native-warning
Mar 24, 2026
Merged

Fix guest PATH clobbered by /etc/profile and Claude native warning#83
JAORMX merged 1 commit intomainfrom
fix/guest-path-and-claude-native-warning

Conversation

@JAORMX
Copy link
Copy Markdown
Contributor

@JAORMX JAORMX commented Mar 24, 2026

Wolfi's /etc/profile rebuilds PATH from scratch, overwriting the
Dockerfile ENV PATH that added /usr/lib/go/bin, ~/go/bin, and
~/.local/bin. Since the SSH session sources /etc/profile before
running the agent command, Go and user-local binaries were invisible.

Add a /etc/profile.d/broodbox-path.sh drop-in so the custom paths
survive the profile reset.

Also symlink /usr/local/bin/claude → /home/sandbox/.local/bin/claude
in the claude-code image so Claude Code's native installMethod check
finds the binary at the expected path, silencing the startup warning.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Wolfi's /etc/profile rebuilds PATH from scratch, overwriting the
Dockerfile ENV PATH that added /usr/lib/go/bin, ~/go/bin, and
~/.local/bin. Since the SSH session sources /etc/profile before
running the agent command, Go and user-local binaries were invisible.

Add a /etc/profile.d/broodbox-path.sh drop-in so the custom paths
survive the profile reset.

Also symlink /usr/local/bin/claude → /home/sandbox/.local/bin/claude
in the claude-code image so Claude Code's native installMethod check
finds the binary at the expected path, silencing the startup warning.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JAORMX JAORMX merged commit b9369d7 into main Mar 24, 2026
8 checks passed
@JAORMX JAORMX deleted the fix/guest-path-and-claude-native-warning branch March 24, 2026 09:01
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.

1 participant