nmattia / niv

Easy dependency management for Nix projects
https://github.com/nmattia/niv
MIT License
1.61k stars 79 forks source link

Replace NixOS/nixpkgs-channels with NixOS/nixpkgs #227

Closed srhb closed 4 years ago

srhb commented 4 years ago

Fixes https://github.com/nmattia/niv/issues/168

This is a completely naive search-and-replace with some artisanal description updating sprinkled on top. nixpkgs mirrors all the way down to 18.09, so I think this is sufficient(?)

I've run the tests via repl > :main -- is there anything else I should do to verify?

srhb commented 4 years ago

Hmm, okay, guess I broke something. I'll try and figure it out.

srhb commented 4 years ago

./script/test runs for me with "all good". I don't have a Mac, so if I did break something, I'm not sure how to verify it. :)

domenkozar commented 4 years ago

@nmattia this one would be great to merge as channels confuse newcomers :)

sir4ur0n commented 4 years ago

Hi,

Can this PR be reconsidered for review please? I just started using Niv and indeed, I got quite confused on this :sweat_smile: I can only imagine many (new) users feel the same.

Note: let me know if I can help, though I think this PR is pretty much done?

nmattia commented 4 years ago

Sorry for the delay, I was out for a while. I'll have a look at this asap!

nmattia commented 4 years ago

Alright, I cleaned up a bit:

I guess the readme still need to be updated though! Thanks for doing this!

srhb commented 4 years ago

I can drop those changes, but I'm not sure there's any point if you want to keep using the deprecated repository regardless (but why? :smile:)

To clarify: NixOS/nixpkgs-channels is deprecated. There's no date for it going away, but the proper repository to get all branches from is now NixOS/nixpkgs.

Furthermore I'm a bit surprised you've baked in the release-$foo branches in your above PRs. release-$foo branches are the untested, pre-Hydra CI branches -- like "master" but for a stable branch instead of for {nixos,nixpkgs}-unstable -- whereas nixpkgs-$foo and nixos-$foo are post-Hydra CI branches, that correspond to the deprecated nixpkgs-channels branches. Was that intentional?

nmattia commented 4 years ago

I can drop those changes

Please don't! What I mean is that you now need way fewer changes. In particular, you don't need to update the the tests. Sorry for the confusion!

NixOS/nixpkgs-channels is deprecated.

Yep, and I've never liked it. Let's nuke it.

surprised you've baked in the release-$foo branches in your above PRs. [...] Was that intentional?

No! I always thought nixos-FOO was the nixos release and release-FOO was the nixpkgs release. Thanks for clarifying that!

srhb commented 4 years ago

Ah, ok, thank you for clarifying! :smile: I'll clean this up tonight then. :)

srhb commented 4 years ago

Done. I didn't touch tests, nor change the "release" branches, because I'm not sure what you want to point them to. I added the default user/repo to the options parser default values, because I think they were just missed.

nmattia commented 4 years ago

I'll release a new version tomorrow!