fix(ci): install gomod2nix directly (#17365)

This commit is contained in:
Julien Robert 2023-08-11 14:57:01 +02:00 committed by GitHub
parent f8f4c35a9f
commit 3a1ee507ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,9 +10,8 @@ done
if ! command -v gomod2nix &> /dev/null
then
echo "gomod2nix could not be found in PATH"
echo "run \"go install github.com/nix-community/gomod2nix@latest\" to install"
exit
echo "gomod2nix could not be found in PATH, installing..."
go install github.com/nix-community/gomod2nix@latest
fi
# update gomod2nix.toml for simapp
cd simapp; gomod2nix