Skip to content

scripts/interactive-release.sh: use path: prefix for flake refs#7743

Open
Unisay wants to merge 1 commit intomasterfrom
yura/release-script-worktree-fix
Open

scripts/interactive-release.sh: use path: prefix for flake refs#7743
Unisay wants to merge 1 commit intomasterfrom
yura/release-script-worktree-fix

Conversation

@Unisay
Copy link
Copy Markdown
Contributor

@Unisay Unisay commented Apr 24, 2026

In a bare-repo + git-worktree layout, Nix's default .# flake ref treats the flake as a Git input and errors with Path 'flake.nix' in the repository is not tracked by Git — even though the file is tracked in the bare repo. Prefixing with path: tells Nix to read the directory directly; standard clones see identical behaviour.

I hit this during the Plutus 1.62.0.0 release when step 6 (publish-gh-release) ran nix build ".#...". The two invocations in that function are the only .# flake refs in the script; both now use path:.#.

Nix's default `.#` flake ref treats the flake as a Git-tracked input; in
bare-repo + worktree setups this produces "Path 'flake.nix' is not
tracked" errors even though the file is tracked. The `path:` prefix
sidesteps Git and reads the directory directly, with identical output
in standard clones. Encountered during Plutus 1.62.0.0 release, step 6
(`publish-gh-release`).
@Unisay Unisay requested a review from zeme-wana April 24, 2026 16:25
@Unisay Unisay self-assigned this Apr 24, 2026
@Unisay Unisay added the No Changelog Required Add this to skip the Changelog Check label Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No Changelog Required Add this to skip the Changelog Check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant