From 3a1ee507ef6d46737ae3582434657b57bcd75db5 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Fri, 11 Aug 2023 14:57:01 +0200 Subject: [PATCH] fix(ci): install `gomod2nix` directly (#17365) --- scripts/go-mod-tidy-all.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/go-mod-tidy-all.sh b/scripts/go-mod-tidy-all.sh index 4212b54de2..0f4e655bcd 100755 --- a/scripts/go-mod-tidy-all.sh +++ b/scripts/go-mod-tidy-all.sh @@ -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