scripts/interactive-release.sh: use path: prefix for flake refs#7743
Open
scripts/interactive-release.sh: use path: prefix for flake refs#7743
Conversation
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`).
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.
In a bare-repo + git-worktree layout, Nix's default
.#flake ref treats the flake as a Git input and errors withPath 'flake.nix' in the repository is not tracked by Git— even though the file is tracked in the bare repo. Prefixing withpath: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) rannix build ".#...". The two invocations in that function are the only.#flake refs in the script; both now usepath:.#.