Repository navigation
Read the main checkout's .env.local from linked worktrees - #77
Merged
Merged
Conversation
MarcusJRLee
force-pushed
the
worktree_env_local
branch
2 times, most recently
from
November 11, 2026 03:44
b84bdcb to
880ffba
Compare
MarcusJRLee
force-pushed
the
worktree_env_local
branch
2 times, most recently
from
November 16, 2026 18:37
1f5b358 to
843f987
Compare
The repo kit puts every branch in .worktrees/<name>, which has no .env.local, so install_app.sh refused to sign there without HC_ENV_FILE. scripts/local_env.sh resolves HC_ENV_FILE, then the checkout's own file, then the main checkout's; install_app.sh and build_ios_device.sh use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MarcusJRLee
force-pushed
the
worktree_env_local
branch
from
November 16, 2026 21:33
843f987 to
d73ab73
Compare
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.
Summary
The repo kit puts every branch in
.worktrees/<name>, which has no.env.local, soscripts/install_app.shrefused to sign there unless you passedHC_ENV_FILEby hand.scripts/local_env.shresolves, in order:HC_ENV_FILE, the checkout's own.env.local, then the main checkout's (found throughgit rev-parse --git-common-dir). Outside git it falls back to$PWD/.env.local.install_app.shandbuild_ios_device.shuse it, so iOS device installs from a worktree work too.scripts/local_env_test.sh(run bycheck_fast.sh) covers the main checkout, a worktree with and without its own file, outside git, and the override.Verification
scripts/check.sh: pass (includesinstall_app_test.shandinstall_ios_test.sh).scripts/install_app.shfrom.worktrees/worktree_env_localwith noHC_ENV_FILEsigned, verified, installed, and passed the smoke and speech-service checks.Boundaries
Alternatives
git --git-common-dir.env.localinto each worktree on checkoutHC_ENV_FILEHC_ENV_FILERecommendation: resolve through the common git dir.
🤖 Generated with Claude Code