diff --git a/examples/custom/build.sh b/examples/custom/build.sh index 5829e836dd4..23c2f6f21ae 100755 --- a/examples/custom/build.sh +++ b/examples/custom/build.sh @@ -2,7 +2,9 @@ set -e if ! [ -x "$(command -v ko)" ]; then - GO111MODULE=on go get -mod=readonly github.com/google/ko/cmd/ko + pushd $(mktemp -d) + go mod init tmp; go get github.com/google/ko/cmd/ko + popd fi output=$(ko publish --local --preserve-import-paths --tags= . | tee) diff --git a/examples/custom/go.mod b/examples/custom/go.mod index 945f33411a0..da9aaa44bb8 100644 --- a/examples/custom/go.mod +++ b/examples/custom/go.mod @@ -1,3 +1,3 @@ module github.com/GoogleContainerTools/skaffold/examples/custom -go 1.13 +go 1.14 diff --git a/integration/examples/custom/build.sh b/integration/examples/custom/build.sh index 5829e836dd4..23c2f6f21ae 100755 --- a/integration/examples/custom/build.sh +++ b/integration/examples/custom/build.sh @@ -2,7 +2,9 @@ set -e if ! [ -x "$(command -v ko)" ]; then - GO111MODULE=on go get -mod=readonly github.com/google/ko/cmd/ko + pushd $(mktemp -d) + go mod init tmp; go get github.com/google/ko/cmd/ko + popd fi output=$(ko publish --local --preserve-import-paths --tags= . | tee) diff --git a/integration/examples/custom/go.mod b/integration/examples/custom/go.mod index 945f33411a0..da9aaa44bb8 100644 --- a/integration/examples/custom/go.mod +++ b/integration/examples/custom/go.mod @@ -1,3 +1,3 @@ module github.com/GoogleContainerTools/skaffold/examples/custom -go 1.13 +go 1.14