Open Xophmeister opened 5 months ago
Ah, we have the same error on the update-flake-lock action of Nickel. At least there's an explanation now.
FYI, I found out in nixpkgs#340964 that this is a known issue in fetchgit
.
We're hitting that again on the Nickel CI, and it's getting tiring. I wonder if we shouldn't just fork or mirror the bash grammar, adding proper refs for commits that we want to target given the insights from @nbraud.
@yannham This shouldn't be happening any more for Nickel, as the Bash grammar was feature-gated in #711 -- this PR was specifically to workaround this problem -- and since, (almost) all grammars were removed as dependencies in #716 (dynamic loading). Neither of these PRs are in a release yet: Is that the issue?
Neither of these PRs are in a release yet: Is that the issue?
It's not, but the issue is that we can't use a revision posterior to dynamic loading because it still doesn't work on main
in a Nix build - we would need to get https://github.com/tweag/topiary/pull/747 for that. However I can try to pin Topiary to the merge commit of #711 and see if the error goes away. Once #747 is merged, I guess we'll be fine forever :crossed_fingers:
The pinned version of
tree-sitter-bash
which Topiary depends upon appears to reference a rev of Bash that can no longer be pulled from Savannah. e.g.:Originally posted by @lavigneer in https://github.com/tweag/topiary/pull/699
This has happened before, but it's not clear why. The rev mentioned above is certainly on Savannah, for example.
In the past, we've fixed this by bumping the version of
tree-sitter-bash
. We can only do this so often, until thetree-sitter-bash
grammar changes and our rules become invalid.