-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Nix version used #513
Comments
Quoting @LnL7
Even only evaluating after merge would already be helpful. Potentially annoying, but at least it signals the issue timely. Original issue regarding the use of SRI hashes in Nixpkgs NixOS/nixpkgs#89275 |
🤔 instead of Borg we could perhaps make the check a normal build job, and make the channels depend on it. (EDIT: though I'm not sure how much it's hard to use different nix inside a nix build.) |
Something like the following? $ cat default.nix
let
nixpkgs = fetchTarball "channel:nixos-20.03";
pkgs = import nixpkgs {};
minver = import (fetchTarball "channel:nixos-19.09") {}; # Should import minver.nix for this and use a mapping to fetch Nix(pkgs).
in pkgs.runCommand "minver-test" {
buildInputs = [ minver.nix ];
} ''
NIX_STATE_DIR=/build/var/nix nix-env -f ${nixpkgs} -qa --drv-path --meta --xml
echo success > $out
'' edit: To be clear, we would not fetch tarballs. |
If it should be in NixPkgs, e.g. a dependency of the |
|
With 1.11 -> 2.0 we evaluated everything with nix1 until the version requirement was bumped IIRC. I made a patch with which disallows the new hash types which can be applied in a similar way. Long term I was having the same idea, move evaluation to a build and pass in the dependencies dynamically based on the target branch. That approach also works for other things, like the editorconfig check or lib tests. Main issue I see with this is that it relies on channel updates not breaking these unrelated builds. |
NixPkgs has
lib/minver.nix
denoting limit on Nix version (2.0 ATM), but I know of no automation actually checking that committed code evaluates with such an old Nix. Perhaps OfBorg should run (one of) its evals with Nix 2.0.x?The text was updated successfully, but these errors were encountered: