Chore: Fix go workspace update script (#91720)
(cherry picked from commit 970a6e71ba)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user