Skip to content

Commit

Permalink
.version: Make lib/.version source of truth
Browse files Browse the repository at this point in the history
This way we don't have to make sure they're in sync, and we remove
a small step from the release process.
  • Loading branch information
roberth committed Feb 26, 2024
1 parent 17117cf commit f45844c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion .version

This file was deleted.

1 change: 1 addition & 0 deletions .version
9 changes: 0 additions & 9 deletions lib/tests/test-with-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}" {
nix-store --init
# nixpkgs/lib/.version is a copy of nixpkgs/.version, so that the lib
# subtree is valid in isolation (except for the tests, but that's ok)
cp ${../../.version} nixpkgs-.version
cp ${../.version} nixpkgs-lib-.version
diff -U3 nixpkgs-.version nixpkgs-lib-.version || {
echo '<nixpkgs/.version> and <nixpkgs/lib/.version> must match.'
exit 1
}
cp -r ${../.} lib
echo "Running lib/tests/modules.sh"
bash lib/tests/modules.sh
Expand Down

0 comments on commit f45844c

Please sign in to comment.