Skip to content

fix(dev/preflight): resolve REPO three levels up from script location#123

Merged
couragehong merged 1 commit into
feat/go-migrationfrom
couragehong/fix/preflight-repo-path
May 8, 2026
Merged

fix(dev/preflight): resolve REPO three levels up from script location#123
couragehong merged 1 commit into
feat/go-migrationfrom
couragehong/fix/preflight-repo-path

Conversation

@couragehong
Copy link
Copy Markdown
Contributor

The path-fix from PR #120 review never made it into the merged commit (staging order issue) — REPO landed pointing at scripts/dev/v04/ itself, so step 1's cd "$REPO" followed by go build ./cmd/rune-mcp tries to stat scripts/dev/v04/cmd/rune-mcp, which doesn't exist, and the script aborts with a build failure.

Going up three directories from scripts/dev/v04/ resolves to the repo root regardless of where the user invokes the script from, restoring the intended idempotent pre-flight behavior.

Verified locally: every section (build / plugin source / vault / runed / ~/.rune scrub / mcpServers / plugin cache) reports green and the script exits 0.

The path-fix from PR #120 review never made it into the merged commit
(staging order issue) — REPO landed pointing at scripts/dev/v04/
itself, so step 1's `cd "$REPO"` followed by `go build ./cmd/rune-mcp`
tries to stat scripts/dev/v04/cmd/rune-mcp, which doesn't exist, and
the script aborts with a build failure.

Going up three directories from scripts/dev/v04/ resolves to the repo
root regardless of where the user invokes the script from, restoring
the intended idempotent pre-flight behavior.

Verified locally: every section (build / plugin source / vault /
runed / ~/.rune scrub / mcpServers / plugin cache) reports green and
the script exits 0.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@couragehong couragehong self-assigned this May 8, 2026
@couragehong couragehong merged commit 6cbc565 into feat/go-migration May 8, 2026
1 check passed
@couragehong couragehong deleted the couragehong/fix/preflight-repo-path branch May 8, 2026 00:42
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