Skip to content

Commit

Permalink
chore(build): fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Umaaz committed Sep 25, 2024
1 parent b90a9fb commit fc2af77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ gen-jsonnet:
.PHONY: update-workspace
update-workspace:
@echo "updating workspace"
bash scripts/go-workspace/update-workspace.sh
sh scripts/go-workspace/update-workspace.sh

.PHONY: build-go
build-go: gen-go update-workspace ## Build all Go binaries.
Expand Down
16 changes: 8 additions & 8 deletions scripts/go-workspace/update-workspace.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#!/usr/bin/env bash
#!/usr/bin/env sh

set -o errexit
set -o nounset
set -o pipefail
set -e
set -u

REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
REPO_ROOT=$(dirname "$0")/../..
echo $REPO_ROOT

for mod in $(go run scripts/go-workspace/main.go list-submodules --path "${REPO_ROOT}/go.work"); do
pushd "${mod}"
cd "${mod}"
echo "Running go mod tidy in ${mod}"
go mod tidy || true
popd
cd - > /dev/null
done

pushd "${REPO_ROOT}"
cd "${REPO_ROOT}"
echo "running go mod download"
go mod download

Expand Down

0 comments on commit fc2af77

Please sign in to comment.