[v11.2.x] Chore: Fix go workspace update script (#92309)

Chore: Fix go workspace update script (#91720)

(cherry picked from commit 970a6e71ba)

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-08-22 11:20:03 -04:00
committed by GitHub
co-authored by Todd Treece
parent 5d6262a5e1
commit 700231ae69
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ update-workspace:
bash scripts/go-workspace/update-workspace.sh
.PHONY: build-go
build-go: update-workspace gen-go ## Build all Go binaries.
build-go: gen-go update-workspace ## Build all Go binaries.
@echo "build go files"
$(GO) run build.go $(GO_BUILD_FLAGS) build
+1 -1
View File
@@ -9,7 +9,7 @@ REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
for mod in $(go run scripts/go-workspace/main.go list-submodules --path "${REPO_ROOT}/go.work"); do
pushd "${mod}"
echo "Running go mod tidy in ${mod}"
go mod tidy
go mod tidy || true
popd
done