-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
nixpkgs tarball: using ag alias breaks eval-release.nix check #44299
Comments
Yes this was intentional. The relevant config is allowAliases: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/release.nix#L19. My opinion is that it's fine to use aliases /outside/ of Nixpkgs but inside we should always refer to the real name. The hope is that all of them are pretty straightforward to fix - but it looks like OfBorg is not yet catching them for some reason? Perhaps it was just an older PR. |
Fine with me but ofborg needs to catch these so we don't accidentally block the channel. |
cc @grahamc |
@LnL7 had a good point about rejecting aliases during build checks: a badly written alias change could break nixpkgs for everyone, and we'd never know it until after everything was released. This is part of the reason the alias disabling check hasn't been deployed yet: I'm concerned about the potential problems this strictness will cause, and am less clear on the actual value of prohibiting aliases during normal evaluation. The reason I have only just now said so is due to my recovery from surgery. |
Here is the PR for OfBorg that I think will do this: NixOS/ofborg#203 |
An alternative if people think blocking evaluation on aliases is too strong would be to move the This would mean that all of Nixpkgs would still evaluate, but for the tarball to build it would need to evaluate with |
This was probably discussed elsewhere before, but I really see no point in blocking aliases. Either we have them, and they should work interchangeably with the original names, or we don't. Allowing them somewhere but not everywhere just causes confusion . If we want an eval check for aliases to get rid of them eventually, can't we just make it issue warnings instead of errors? |
It sounds like there is not a consensus on doing this. If so I am perfectly fine with someone reverting 0d8076b. I just hate to see us backsliding into using aliases once work has been done removing them. |
didn't eval on Hydra as release.nix doesn't allow aliases, see #44299 Use samba instead.
Fixes broken nixpkgs.tarball hydra build. See NixOS#44299
Issue description
Merging #44273 broke the nixpkgs tarball with this error in
eval-release.nix
, apparently because the aliasag
forsilver-searcher
is not known in that context.Bug or feature? If this behavior is intended, does it mean that aliases cannot be used in derivations?
Steps to reproduce
nix-build pkgs/top-level/release.nix -A tarball
on master 696b426The text was updated successfully, but these errors were encountered: