Skip to content

Commit

Permalink
Use vgopath setup consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
afritzler committed Nov 9, 2023
1 parent 86b6bac commit a20f326
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ OPENAPI_GEN="$OPENAPI_GEN"
APPLYCONFIGURATION_GEN="$APPLYCONFIGURATION_GEN"

VIRTUAL_GOPATH="$(mktemp -d)"
trap 'rm -rf "$GOPATH"' EXIT
trap 'rm -rf "$VIRTUAL_GOPATH"' EXIT

# Setup virtual GOPATH so the codegen tools work as expected.
(cd "$SCRIPT_DIR/.."; go mod download && "$VGOPATH" -o "$VIRTUAL_GOPATH")
Expand Down
4 changes: 2 additions & 2 deletions hack/update-proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ normal="$(tput sgr0)"
VGOPATH="$VGOPATH"
PROTOC_GEN_GOGO="$PROTOC_GEN_GOGO"

TGOPATH="$(mktemp -d)"
trap 'rm -rf "$TGOPATH"' EXIT
VIRTUAL_GOPATH="$(mktemp -d)"
trap 'rm -rf "$VIRTUAL_GOPATH"' EXIT

# Setup virtual GOPATH so the codegen tools work as expected.
(
Expand Down

0 comments on commit a20f326

Please sign in to comment.