diff --git a/Makefile b/Makefile index b7d5a78ece..74efcd0ce8 100644 --- a/Makefile +++ b/Makefile @@ -414,7 +414,7 @@ endif setup-go-work: export BUILD_ENTERPRISE_READY := $(BUILD_ENTERPRISE_READY) setup-go-work: export BUILD_BOARDS := $(BUILD_BOARDS) setup-go-work: ## Sets up your go.work file - ./scripts/setup_go_work.sh + ./scripts/setup_go_work.sh $(IGNORE_GO_WORK_IF_EXISTS) check-style: golangci-lint plugin-checker vet ## Runs style/lint checks diff --git a/scripts/setup_go_work.sh b/scripts/setup_go_work.sh index 681121838b..76c7018736 100755 --- a/scripts/setup_go_work.sh +++ b/scripts/setup_go_work.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [[ ! -f "go.work" ]] ; +if [[ $1 != "true" ]] ; then echo "Creating a go.work file"