Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

gcurtis
Copy link
Collaborator

@gcurtis gcurtis commented Dec 20, 2024

The string form of GitHub flakeref can only have a rev or a ref, not both. For example:

  • Good: github:NixOS/nixpkgs/b321c8e818546d5491ee5611476500557b880856
  • Good: github:NixOS/nixpkgs/nixpkgs-unstable
  • Bad: github:NixOS/nixpkgs/nixpkgs-unstable/b321c8e818546d5491ee5611476500557b880856

If both the Rev and Ref fields are set, use Rev.

The string form of GitHub flakeref can only have a rev or a ref, not
both. For example:

- Good: github:NixOS/nixpkgs/b321c8e818546d5491ee5611476500557b880856
- Good: github:NixOS/nixpkgs/nixpkgs-unstable
- Bad: github:NixOS/nixpkgs/nixpkgs-unstable/b321c8e818546d5491ee5611476500557b880856

If both the Rev and Ref fields are set, use Rev.
@gcurtis gcurtis requested review from mikeland73 and savil December 20, 2024 21:41
@gcurtis gcurtis merged commit f3a5af4 into main Dec 20, 2024
29 checks passed
@gcurtis gcurtis deleted the gcurtis/fix-github-flakeref branch December 20, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants