Skip to content

chore(ios): give git worktrees the Honeycomb key - #58

Merged
i11v merged 1 commit into
mainfrom
chore/ios-local-config-worktrees
Oct 17, 2026
Merged

i11v merged 1 commit into
mainfrom
chore/ios-local-config-worktrees

Conversation

@i11v

@i11v i11v commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Requested by Ilnur · project thread

Before: apps/ios/Local.xcconfig, which holds the Honeycomb ingest key, is gitignored, so a new git worktree doesn't get it. #include? "Local.xcconfig" then silently includes nothing, and the worktree's iOS build runs with no key and sends no telemetry, with no sign that anything is wrong.

After: creating a worktree symlinks the main checkout's Local.xcconfig into it. Any build that still has no key (a temp copy, a CI build) shows the Xcode build warning "HONEYCOMB_API_KEY is empty, so this build sends no telemetry".

How

  • scripts/link-local-config.sh finds the main checkout from git rev-parse --git-common-dir and symlinks apps/ios/Local.xcconfig into the current worktree when it is missing there. It does nothing in the main checkout or when the file already exists, and you can run it by hand in a worktree made before this change.
  • lefthook.yml gains a post-checkout job that runs the script, so git worktree add triggers it. The installed hook calls lefthook by the main checkout's absolute path, so it also works in a fresh worktree with no node_modules.
  • The apps/ios/project.yml pre-build script prints the warning when HONEYCOMB_API_KEY is empty.
  • apps/ios/README.md documents both.

Tested here: the script is a no-op in the main checkout, links once in a worktree and is idempotent on a second run. After lefthook install, a plain git worktree add created the symlink through the hook. I couldn't run XcodeGen or Xcode here, so the pre-build script is checked only by the iOS CI build.

After merging: run bun install (or bunx lefthook install) once in the main checkout to install the new post-checkout hook. For worktrees that already exist, run scripts/link-local-config.sh in each.


Generated by Claude Code

apps/ios/Local.xcconfig is gitignored, so a new worktree lacked it and its
iOS builds silently ran without the Honeycomb ingest key. A lefthook
post-checkout job now symlinks the main checkout's Local.xcconfig into a
worktree when it's created (scripts/link-local-config.sh, also runnable by
hand), and a pre-build script warns when a build has no key.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SDM2pVeSUgwNr2EUZAajLo
@i11v i11v self-assigned this Oct 17, 2026
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed: https://preview-58.tablo.run
fallback: https://tablo-pr-58.i11v.workers.dev

@i11v
i11v marked this pull request as ready for review October 17, 2026 22:46
@i11v
i11v merged commit ee33967 into main Oct 17, 2026
3 checks passed
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.

2 participants