Skip to content

fetchgit{,hub,lab}: passthru rev based on tag#369506

Merged
Atemu merged 3 commits intoNixOS:masterfrom
pbsds:feat-fetchgit-expose-tag-as-rev-1735595166
Jan 1, 2025
Merged

fetchgit{,hub,lab}: passthru rev based on tag#369506
Atemu merged 3 commits intoNixOS:masterfrom
pbsds:feat-fetchgit-expose-tag-as-rev-1735595166

Conversation

@pbsds
Copy link
Member

@pbsds pbsds commented Dec 30, 2024

fixes #355973 (comment)
will enable a lot more migrations in #368177 (comment)

I tested the changed behavior on evemu.src, snoop.src and kazumi.src in the repl.

funnily enough this was already the case in fetchgit, but it did not passthru the tag. This PR should unify the interfaces

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: fetch Fetchers (e.g. fetchgit, fetchsvn, ...) label Dec 30, 2024
@pbsds pbsds marked this pull request as ready for review December 30, 2024 22:16
@nix-owners nix-owners bot requested a review from philiptaron December 30, 2024 22:17
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Dec 30, 2024
Copy link
Member

@Atemu Atemu left a comment

Choose a reason for hiding this comment

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

Nobody should depend on this for any load-bearing code IMHO but it doesn't hurt to expose it like this I guess.

I had a glance at the diff and it LGTM.

@pbsds
Copy link
Member Author

pbsds commented Dec 31, 2024

If we want to stop using src.tag, then now is the time to stop passing it through. (src.rev is going to be a longer running project.) Should I instead remove it?

@Atemu
Copy link
Member

Atemu commented Dec 31, 2024

I'm not sure removing it outright would be the best move but I wouldn't mind.

@wegank wegank added the 12.approvals: 2 This PR was reviewed and approved by two persons. label Jan 1, 2025
@pbsds
Copy link
Member Author

pbsds commented Jan 1, 2025

Then i leave the merge decision to the committers who are subscribed

@Atemu Atemu merged commit c74c7df into NixOS:master Jan 1, 2025
50 checks passed
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jan 4, 2025

Successfully created backport PR for release-24.11:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: fetch Fetchers (e.g. fetchgit, fetchsvn, ...) 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants