mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
home-manager: move tests into new test flake
Having the tests available in the main Nix Flake introduces unnecessary evaluation for non-developer users and, worse, a dependency on the nmt library. Fixes #6354
This commit is contained in:
parent
b93e17c73c
commit
1b9fe46e9f
5 changed files with 62 additions and 22 deletions
|
|
@ -29,10 +29,16 @@ through
|
|||
$ nix-shell --pure tests -A run.alacritty-empty-settings
|
||||
```
|
||||
|
||||
However, those invocations will impurely source the system's nixpkgs,
|
||||
and may cause failures. To run against the nixpkgs from the flake.lock,
|
||||
However, those invocations will impurely source the system's Nixpkgs,
|
||||
and may cause failures. To run against the Nixpkgs from the `flake.lock` file,
|
||||
use instead e.g.
|
||||
|
||||
``` shell
|
||||
$ nix develop --ignore-environment .#all
|
||||
$ nix build --reference-lock-file flake.lock ./tests#test-all
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
``` shell
|
||||
$ nix build --reference-lock-file flake.lock ./tests#test-alacritty-empty-settings
|
||||
```
|
||||
|
|
|
|||
|
|
@ -17,6 +17,11 @@ This release has the following notable changes:
|
|||
The `"suggest"` alternative will remain for a while longer but may
|
||||
also be deprecated for removal in the future.
|
||||
|
||||
- The Home Manager test suite has been removed from the main Nix Flake
|
||||
since it caused unnecessary evaluations and downloads. Instead the
|
||||
tests are available through a Nix Flake file inside the `tests`
|
||||
directory. See [](#sec-tests) for example commands.
|
||||
|
||||
## State Version Changes {#sec-release-25.05-state-version-changes}
|
||||
|
||||
The state version in this release includes the changes below. These
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue