Add Claude Code session start hook to install bazel and ibazel#1013
Merged
Add Claude Code session start hook to install bazel and ibazel#1013
Conversation
Adds a SessionStart hook that installs Bazelisk (as `bazel`) and ibazel when running in remote Claude Code environments (CLAUDE_CODE_REMOTE=true). The hook is idempotent and skips installation when tools are already present. https://claude.ai/code/session_01N4aetQ98WkthzVBkKdZ3NG
The modernize linter is not available in golangci-lint v2.5.0, causing the linter to fail with "unknown linters" error. https://claude.ai/code/session_01N4aetQ98WkthzVBkKdZ3NG
The remote environment's TLS-inspecting proxy breaks Bazel's built-in downloader. This adds three fixes: 1. scripts/bazel_fetch_deps.sh - pre-downloads WORKSPACE http_archive deps via curl (which handles proxy auth) into a distdir 2. Generates user.bazelrc that disables Bzlmod, enables JDK proxy tunneling auth, and points to a custom truststore with the proxy CA 3. Creates a custom Java truststore by copying Bazel's embedded JDK cacerts and importing the proxy's TLS inspection CA certificate Together these allow `bazel test //...` to work in Claude Code on the web. https://claude.ai/code/session_01N4aetQ98WkthzVBkKdZ3NG
Fixes shellcheck SC2001: prefer ${variable//search/replace} over
piping to sed for simple substitutions.
https://claude.ai/code/session_01N4aetQ98WkthzVBkKdZ3NG
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.
Adds a SessionStart hook that installs Bazelisk (as
bazel) and ibazelwhen running in remote Claude Code environments (CLAUDE_CODE_REMOTE=true).
The hook is idempotent and skips installation when tools are already present.
https://claude.ai/code/session_01N4aetQ98WkthzVBkKdZ3NG