Chore: Fix go workspace update script (#91720)

pull/89586/head^2
Todd Treece 1 year ago committed by GitHub
parent f4d2e064f4
commit 970a6e71ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      Makefile
  2. 2
      scripts/go-workspace/update-workspace.sh

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

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

Loading…
Cancel
Save