Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong revision pulled when updating nixpkgs.nix #57

Open
sorki opened this issue Apr 9, 2021 · 2 comments
Open

Wrong revision pulled when updating nixpkgs.nix #57

sorki opened this issue Apr 9, 2021 · 2 comments

Comments

@sorki
Copy link
Collaborator

sorki commented Apr 9, 2021

$ update-nix-fetchgit --verbose nixpkgs.nix
Updating https://github.com/NixOS/nixpkgs/archive/543c453c8acd8a691a7bcd355acffa08e2db8a84.tar.gz
Made 2 updates

This points to some old commit not even in nixpkgs, I don't get what's going on - NixOS/nixpkgs@543c453

@ nixpkgs.nix:4 @
let
  nixpkgsSrc = builtins.fetchTarball {
    url =
-      "https://github.com/NixOS/nixpkgs/archive/3561ed6953f96e2178142b04413d200be94e281d.tar.gz"; # master
-    sha256 = "1lsg2dw4ifilywis3638023h4c8b073k2v56qzqqkhl7jkaiphbk";
+      "https://github.com/NixOS/nixpkgs/archive/543c453c8acd8a691a7bcd355acffa08e2db8a84.tar.gz"; # master
+   sha256 = "0fv4zcjjcvv2man5f9jszrampqw2s7r5n2cvg07db5am4hksj3q0";
  };

Maybe #53 could help.

@expipiplus1
Copy link
Owner

AH, it's because master is some ancient tag in nixpkgs. You want url = ... # refs/heads/master

There could certainly be a warning or something for this though!!

@expipiplus1
Copy link
Owner

(although in the case of nixpkgs, imo these tags should be removed)

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

No branches or pull requests

2 participants