.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.
This commit is contained in:
parent
17117cf565
commit
f45844cb55
2 changed files with 1 additions and 10 deletions
1
.version
1
.version
|
@ -1 +0,0 @@
|
||||||
24.05
|
|
1
.version
Symbolic link
1
.version
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
lib/.version
|
|
@ -49,15 +49,6 @@ pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}" {
|
||||||
|
|
||||||
nix-store --init
|
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
|
cp -r ${../.} lib
|
||||||
echo "Running lib/tests/modules.sh"
|
echo "Running lib/tests/modules.sh"
|
||||||
bash lib/tests/modules.sh
|
bash lib/tests/modules.sh
|
||||||
|
|
Loading…
Reference in a new issue