nandi/frqpublic Fork 0
cd7e9d2
Commits
Clone
git clone https://git.rickub.com/nandi/frq.git
git clone ssh://git@rickub.com/nandi/frq.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Find the sibling checkouts from a worktree too

The justfile looked for ../vidya beside the justfile, which is the checkout
only when you are in the checkout. From a worktree the justfile sits at
.claude/worktrees/<name>, so that resolved to .claude/worktrees/vidya —
nothing — and the loader failed on the library it could not find.

It went unnoticed while vidya was the only one, because libvidya was
already reachable another way. Adding libjoltmoq beside it is what made the
path actually have to be right.

--git-common-dir is the one thing that answers the same in a worktree as in
the checkout it came from.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
nandi committed 2026-08-30T16:29:54-07:00 Browse files
cd7e9d2 parent: f31ad3d
modified justfile +9 -2
@@ -1,7 +1,14 @@
11 set shell := ["bash", "-euo", "pipefail", "-c"]
22
3-vidya := justfile_directory() + "/../vidya"
4-jolt_native := justfile_directory() + "/../jolt-native"
3+# Sibling checkouts, found relative to the *main* checkout rather than to this
4+# directory. In a git worktree they are not the same place: the justfile sits
5+# at .claude/worktrees/<name>, so "../vidya" from here would be
6+# .claude/worktrees/vidya, which is nothing. `--git-common-dir` is the one
7+# thing that answers the same in a worktree as it does in the checkout it came
8+# from.
9+checkout := parent_directory(`git rev-parse --path-format=absolute --git-common-dir`)
10+vidya := checkout / "../vidya"
11+jolt_native := checkout / "../jolt-native"
512
613 default:
714 @just --list
@@ -1,7 +1,14 @@
1 set shell := ["bash", "-euo", "pipefail", "-c"]1 set shell := ["bash", "-euo", "pipefail", "-c"]
2 2
3-vidya := justfile_directory() + "/../vidya"3+# Sibling checkouts, found relative to the *main* checkout rather than to this
4-jolt_native := justfile_directory() + "/../jolt-native"4+# directory. In a git worktree they are not the same place: the justfile sits
5+# at .claude/worktrees/<name>, so "../vidya" from here would be
6+# .claude/worktrees/vidya, which is nothing. `--git-common-dir` is the one
7+# thing that answers the same in a worktree as it does in the checkout it came
8+# from.
9+checkout := parent_directory(`git rev-parse --path-format=absolute --git-common-dir`)
10+vidya := checkout / "../vidya"
11+jolt_native := checkout / "../jolt-native"
5 12
6 default:13 default:
7 @just --list14 @just --list