Merge pull request #179176 from 2xsaiko/outgoing/rebuild-test-symlink

nixos-rebuild: Do not create result symlink in current directory with 'nixos-rebuild test'
This commit is contained in:
Maximilian Bosch 2022-07-22 14:17:17 +02:00 committed by GitHub
commit e45569822b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,7 +254,7 @@ nixBuild() {
nixFlakeBuild() {
logVerbose "Building in flake mode."
if [[ -z "$buildHost" && -z "$targetHost" && "$action" != switch && "$action" != boot ]]
if [[ -z "$buildHost" && -z "$targetHost" && "$action" != switch && "$action" != boot && "$action" != test && "$action" != dry-activate ]]
then
runCmd nix "${flakeFlags[@]}" build "$@"
readlink -f ./result