modctl: fix install check on aarch64-darwin
modctl creates a ~/.modctl directory before running any cobra command. Go's os/user package doesn't respect $HOME on darwin and does system calls directly, so the installCheckPhase fails there. Pass --log-dir and --storage-dir pointing at $TMPDIR to avoid touching $HOME.
This commit is contained in:
@@ -28,7 +28,7 @@ buildGoModule rec {
|
|||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
runHook preInstallCheck
|
runHook preInstallCheck
|
||||||
$out/bin/modctl --help > /dev/null
|
$out/bin/modctl --help > /dev/null
|
||||||
$out/bin/modctl version 2>&1 | grep -q "v${version}"
|
$out/bin/modctl version --log-dir="$TMPDIR" --storage-dir="$TMPDIR" 2>&1 | grep -q "v${version}"
|
||||||
runHook postInstallCheck
|
runHook postInstallCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user