Skip to content

Commit b68128a

Browse files
committed
Update ko sample
Signed-off-by: David Gageot <[email protected]>
1 parent 4939f21 commit b68128a

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

examples/custom/build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
set -e
33

44
if ! [ -x "$(command -v ko)" ]; then
5-
GO111MODULE=on go get -mod=readonly github.com/google/ko/cmd/ko
5+
pushd $(mktemp -d)
6+
go mod init tmp; go get github.com/google/ko/cmd/ko
7+
popd
68
fi
79

810
output=$(ko publish --local --preserve-import-paths --tags= . | tee)

examples/custom/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/GoogleContainerTools/skaffold/examples/custom
22

3-
go 1.13
3+
go 1.14

integration/examples/custom/build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
set -e
33

44
if ! [ -x "$(command -v ko)" ]; then
5-
GO111MODULE=on go get -mod=readonly github.com/google/ko/cmd/ko
5+
pushd $(mktemp -d)
6+
go mod init tmp; go get github.com/google/ko/cmd/ko
7+
popd
68
fi
79

810
output=$(ko publish --local --preserve-import-paths --tags= . | tee)

integration/examples/custom/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/GoogleContainerTools/skaffold/examples/custom
22

3-
go 1.13
3+
go 1.14

0 commit comments

Comments
 (0)