From 05fd701eaabdcac8b54c8bda05d79f0db013645f Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Wed, 18 Dec 2024 21:37:52 -0800 Subject: [PATCH] Migrate sync-toolchain-directive make target to use the Go workspace Update the `scripts/sync_go_toolchain_directive.sh` file to include the `go work edit -toolchain=go` command. Signed-off-by: Ivan Valdes --- scripts/sync_go_toolchain_directive.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/sync_go_toolchain_directive.sh b/scripts/sync_go_toolchain_directive.sh index 643138e1d0a9..527949b7a133 100755 --- a/scripts/sync_go_toolchain_directive.sh +++ b/scripts/sync_go_toolchain_directive.sh @@ -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}"