Is there an existing issue for this?
Feature description
When a flake.nix input pins to a specific tag, Dependabot should detect newer tags and update the ref.
# before
inputs.devenv.url = "github:cachix/devenv/v0.5";
# after
inputs.devenv.url = "github:cachix/devenv/v0.5.1";
The PR would also regenerate flake.lock, which we already know how to do.
This is the second use case from #7340. We left it out of #14498 because it means parsing Nix syntax to find and rewrite URL strings in flake.nix. The lock file part is the easy bit.
Things to figure out:
- Parsing. Nix syntax is not trivial to parse from Ruby, but input URLs follow a pretty predictable pattern. A regex over the raw file might be enough for common cases.
- Tag ordering. Most flake inputs use semver-ish tags, but not all. What do we do with non-semver tags? Skip them? Treat any different tag as newer?
Is there an existing issue for this?
Feature description
When a
flake.nixinput pins to a specific tag, Dependabot should detect newer tags and update the ref.The PR would also regenerate
flake.lock, which we already know how to do.This is the second use case from #7340. We left it out of #14498 because it means parsing Nix syntax to find and rewrite URL strings in
flake.nix. The lock file part is the easy bit.Things to figure out: