Skip to content

Commit

Permalink
Migrate sync-toolchain-directive make target to use the Go workspace
Browse files Browse the repository at this point in the history
Update the `scripts/sync_go_toolchain_directive.sh` file to include the
`go work edit -toolchain=go` command.

Signed-off-by: Ivan Valdes <ivan@vald.es>
  • Loading branch information
ivanvc committed Feb 2, 2025
1 parent 33ed0b7 commit 05fd701
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/sync_go_toolchain_directive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ source ./scripts/test_lib.sh

TARGET_GO_VERSION="${TARGET_GO_VERSION:-"$(cat "${ETCD_ROOT_DIR}/.go-version")"}"
find . -name 'go.mod' -exec go mod edit -toolchain=go"${TARGET_GO_VERSION}" {} \;
go work edit -toolchain=go"${TARGET_GO_VERSION}"

0 comments on commit 05fd701

Please sign in to comment.