about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2024-02-14 16:43:08 +0100
committerRobert Hensing <robert@roberthensing.nl>2024-02-26 22:34:10 +0100
commitf45844cb558bc261a3a4d91054fba81f5d6fedee (patch)
treea53e3c6590c8402daa5d5075ae582139bedd37e8 /lib
parent17117cf5658c107df9f7ffdda1999c668ea67ecc (diff)
downloadnixlib-f45844cb558bc261a3a4d91054fba81f5d6fedee.tar
nixlib-f45844cb558bc261a3a4d91054fba81f5d6fedee.tar.gz
nixlib-f45844cb558bc261a3a4d91054fba81f5d6fedee.tar.bz2
nixlib-f45844cb558bc261a3a4d91054fba81f5d6fedee.tar.lz
nixlib-f45844cb558bc261a3a4d91054fba81f5d6fedee.tar.xz
nixlib-f45844cb558bc261a3a4d91054fba81f5d6fedee.tar.zst
nixlib-f45844cb558bc261a3a4d91054fba81f5d6fedee.zip
.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.
Diffstat (limited to 'lib')
-rw-r--r--lib/tests/test-with-nix.nix9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/tests/test-with-nix.nix b/lib/tests/test-with-nix.nix
index 9bc160a4682a..fd2e7532e697 100644
--- a/lib/tests/test-with-nix.nix
+++ b/lib/tests/test-with-nix.nix
@@ -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