Skip to content

Commit f45844c

Browse files
committed
.version: Make lib/.version source of truth
This way we don't have to make sure they're in sync, and we remove a small step from the release process.
1 parent 17117cf commit f45844c

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

.version

-1
This file was deleted.

.version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib/.version

lib/tests/test-with-nix.nix

-9
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,6 @@ pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}" {
4949
5050
nix-store --init
5151
52-
# nixpkgs/lib/.version is a copy of nixpkgs/.version, so that the lib
53-
# subtree is valid in isolation (except for the tests, but that's ok)
54-
cp ${../../.version} nixpkgs-.version
55-
cp ${../.version} nixpkgs-lib-.version
56-
diff -U3 nixpkgs-.version nixpkgs-lib-.version || {
57-
echo '<nixpkgs/.version> and <nixpkgs/lib/.version> must match.'
58-
exit 1
59-
}
60-
6152
cp -r ${../.} lib
6253
echo "Running lib/tests/modules.sh"
6354
bash lib/tests/modules.sh

0 commit comments

Comments
 (0)