Skip to content

Stop using ref in builtins.fetchGit fetcher#268

Merged
nmattia merged 2 commits intomasterfrom
nm-better-refs
Aug 20, 2020
Merged

Stop using ref in builtins.fetchGit fetcher#268
nmattia merged 2 commits intomasterfrom
nm-better-refs

Conversation

@nmattia
Copy link
Copy Markdown
Owner

@nmattia nmattia commented Aug 20, 2020

Instead, sources now record either branch or tag. The fetcher
specifies the correct ref (/refs/heads/... or /refs/tags/...) which
works in the newest version of Nix. The ref attribute can still be set
to override the logic.

Fixes #266

Instead, sources now record either `branch` or `tag`. The fetcher
specifies the correct ref (`/refs/heads/...` or `/refs/tags/...`) which
works in the newest version of Nix. The `ref` attribute can still be set
to override the logic.
Copy link
Copy Markdown

@basvandijk basvandijk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

This adds some warnings when users with existing `ref`-laden sources try
to `niv update`.
@nmattia nmattia merged commit d13bf5f into master Aug 20, 2020
@nmattia nmattia deleted the nm-better-refs branch August 20, 2020 14:54
knl pushed a commit to knl/niv-updater-action that referenced this pull request Aug 28, 2020
Recent [changes in niv](nmattia/niv#268) dropped
the usage of `ref` as a branch in git sources. The new attribute name is
`branch`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use /refs/tags/<tag> to specify git tags to support the current and master version of Nix

2 participants