We flip the default mode to always regenerate the file,
and expose an option to ignore if it exists.

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2022-08-18 01:11:18 +05:30
коммит произвёл GitHub
родитель a78d91e7c0
Коммит 3498592a45
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -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

Просмотреть файл

@@ -1,6 +1,6 @@
#!/bin/bash
if [[ ! -f "go.work" ]] ;
if [[ $1 != "true" ]] ;
then
echo "Creating a go.work file"