google-cloud-sdk: Fix warnings during build step
This commit is contained in:
parent
fcd0c62f9e
commit
509e68feae
|
@ -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}"
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user