From b68128a62157db7065981629efd1fb22b0dc15f1 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Wed, 4 Mar 2020 16:28:56 +0100 Subject: [PATCH] Update ko sample Signed-off-by: David Gageot --- examples/custom/build.sh | 4 +++- examples/custom/go.mod | 2 +- integration/examples/custom/build.sh | 4 +++- integration/examples/custom/go.mod | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) 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