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
@@ -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