google-cloud-sdk: Fix warnings during build step

This commit is contained in:
Marcus Ramberg 2024-04-30 08:35:34 +02:00
parent fcd0c62f9e
commit 509e68feae

View File

@ -73,7 +73,7 @@ in stdenv.mkDerivation rec {
# disable component updater and update check
substituteInPlace $out/google-cloud-sdk/lib/googlecloudsdk/core/config.json \
--replace "\"disable_updater\": false" "\"disable_updater\": true"
--replace-fail "\"disable_updater\": false" "\"disable_updater\": true"
echo "
[component_manager]
disable_update_check = true" >> $out/google-cloud-sdk/properties
@ -110,6 +110,8 @@ in stdenv.mkDerivation rec {
doInstallCheck = true;
installCheckPhase = ''
# Avoid trying to write logs to homeless-shelter
export HOME=$(mktemp -d)
$out/bin/gcloud version --format json | jq '."Google Cloud SDK"' | grep "${version}"
'';