From ead3b45bad630684e9b56febe2f8da41c15a81c0 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Wed, 22 Nov 2023 06:42:05 +0100 Subject: [PATCH] Sanity check for curls existance --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 14a013fca..772686527 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,10 @@ bootstrap: go-version-check go get ./...; \ cd ..; \ done + if ! command -v curl >/dev/null; then \ + echo "Can't install golangci-lint because curl is missing."; \ + exit 1; \ + fi @curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \ sh -s -- -b $$(go env GOPATH)/bin GO111MODULE=off go get golang.org/x/tools/cmd/goimports