1
0
mirror of https://github.com/ko-build/ko.git synced 2025-03-26 21:12:45 +02:00

Switch to go 1.14 in go.mod, test 1.15 (#187)

* Switch to go 1.14 in go.mod, test 1.15

* Fix the integration test semantics with go 1.14+
This commit is contained in:
Matt Moore 2020-09-04 09:31:01 -07:00 committed by GitHub
parent 64c2eef7ba
commit 60e32d0655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 6 deletions

View File

@ -10,7 +10,7 @@ language:
go:
- '1.14'
- '1.13'
- '1.15'
git:
depth: 1

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/google/ko
go 1.12
go 1.14
require (
github.com/docker/cli v0.0.0-20200303162255-7d407207c304 // indirect

View File

@ -70,9 +70,9 @@ else
echo "Test PASSED"
fi
echo "4. Auto inside the module without vendoring should output Hello World"
echo "4. Auto inside the module without vendoring should output TEST"
RESULT="$(GO111MODULE=auto GOFLAGS="" ./ko publish --local github.com/go-training/helloworld | grep "$FILTER" | xargs -I% docker run %)"
if [[ "$RESULT" != *"Hello World"* ]]; then
if [[ "$RESULT" != *"TEST"* ]]; then
echo "Test FAILED. Saw $RESULT" && exit 1
else
echo "Test PASSED"
@ -86,9 +86,9 @@ else
echo "Test PASSED"
fi
echo "6. On inside the module without vendor should output Hello World"
echo "6. On inside the module without vendor should output TEST"
RESULT="$(GO111MODULE=on GOFLAGS="" ./ko publish --local github.com/go-training/helloworld | grep "$FILTER" | xargs -I% docker run %)"
if [[ "$RESULT" != *"Hello World"* ]]; then
if [[ "$RESULT" != *"TEST"* ]]; then
echo "Test FAILED. Saw $RESULT" && exit 1
else
echo "Test PASSED"

24
vendor/modules.txt vendored
View File

@ -14,6 +14,7 @@ github.com/containerd/containerd/errdefs
# github.com/davecgh/go-spew v1.1.1
github.com/davecgh/go-spew/spew
# github.com/docker/cli v0.0.0-20200303162255-7d407207c304
## explicit
github.com/docker/cli/cli/config
github.com/docker/cli/cli/config/configfile
github.com/docker/cli/cli/config/credentials
@ -23,6 +24,7 @@ github.com/docker/distribution/digestset
github.com/docker/distribution/reference
github.com/docker/distribution/registry/api/errcode
# github.com/docker/docker v1.4.2-0.20190924003213-a8608b5b67c7
## explicit
github.com/docker/docker/api
github.com/docker/docker/api/types
github.com/docker/docker/api/types/blkiodev
@ -52,6 +54,7 @@ github.com/docker/go-connections/tlsconfig
# github.com/docker/go-units v0.4.0
github.com/docker/go-units
# github.com/dprotaso/go-yit v0.0.0-20191028211022-135eb7262960
## explicit
github.com/dprotaso/go-yit
# github.com/emicklei/go-restful v2.9.5+incompatible
github.com/emicklei/go-restful
@ -61,6 +64,7 @@ github.com/evanphx/json-patch
# github.com/evanphx/json-patch/v5 v5.0.0
github.com/evanphx/json-patch/v5
# github.com/fsnotify/fsnotify v1.4.7
## explicit
github.com/fsnotify/fsnotify
# github.com/ghodss/yaml v1.0.0
github.com/ghodss/yaml
@ -73,6 +77,7 @@ github.com/go-openapi/spec
# github.com/go-openapi/swag v0.19.5
github.com/go-openapi/swag
# github.com/go-training/helloworld v0.0.0-20200225145412-ba5f4379d78b
## explicit
github.com/go-training/helloworld
# github.com/gogo/protobuf v1.3.1
github.com/gogo/protobuf/proto
@ -86,6 +91,7 @@ github.com/golang/protobuf/ptypes/timestamp
# github.com/google/btree v1.0.0
github.com/google/btree
# github.com/google/go-cmp v0.3.0
## explicit
github.com/google/go-cmp/cmp
github.com/google/go-cmp/cmp/cmpopts
github.com/google/go-cmp/cmp/internal/diff
@ -93,6 +99,7 @@ github.com/google/go-cmp/cmp/internal/flags
github.com/google/go-cmp/cmp/internal/function
github.com/google/go-cmp/cmp/internal/value
# github.com/google/go-containerregistry v0.0.0-20200310013544-4fe717a9b4cb
## explicit
github.com/google/go-containerregistry/pkg/authn
github.com/google/go-containerregistry/pkg/internal/retry
github.com/google/go-containerregistry/pkg/internal/retry/wait
@ -118,6 +125,7 @@ github.com/googleapis/gnostic/OpenAPIv2
github.com/googleapis/gnostic/compiler
github.com/googleapis/gnostic/extensions
# github.com/gregjones/httpcache v0.0.0-20190212212710-3befbb6ad0cc
## explicit
github.com/gregjones/httpcache
github.com/gregjones/httpcache/diskcache
# github.com/hashicorp/hcl v1.0.0
@ -148,6 +156,7 @@ github.com/mailru/easyjson/buffer
github.com/mailru/easyjson/jlexer
github.com/mailru/easyjson/jwriter
# github.com/mattmoor/dep-notify v0.0.0-20190205035814-a45dec370a17
## explicit
github.com/mattmoor/dep-notify/pkg/graph
# github.com/mattn/go-isatty v0.0.12
github.com/mattn/go-isatty
@ -176,12 +185,16 @@ github.com/spf13/afero/mem
# github.com/spf13/cast v1.3.0
github.com/spf13/cast
# github.com/spf13/cobra v1.0.0
## explicit
github.com/spf13/cobra
# github.com/spf13/jwalterweatherman v1.1.0
## explicit
github.com/spf13/jwalterweatherman
# github.com/spf13/pflag v1.0.5
## explicit
github.com/spf13/pflag
# github.com/spf13/viper v1.4.0
## explicit
github.com/spf13/viper
# golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975
golang.org/x/crypto/ssh/terminal
@ -198,6 +211,7 @@ golang.org/x/net/proxy
golang.org/x/oauth2
golang.org/x/oauth2/internal
# golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
## explicit
golang.org/x/sync/errgroup
golang.org/x/sync/semaphore
# golang.org/x/sys v0.0.0-20200116001909-b77594299b42
@ -218,6 +232,7 @@ golang.org/x/text/width
# golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
golang.org/x/time/rate
# golang.org/x/tools v0.0.0-20200210192313-1ace956b0e17
## explicit
golang.org/x/tools/go/gcexportdata
golang.org/x/tools/go/internal/gcimporter
golang.org/x/tools/go/internal/packagesdriver
@ -244,7 +259,10 @@ gopkg.in/inf.v0
# gopkg.in/yaml.v2 v2.2.8
gopkg.in/yaml.v2
# gopkg.in/yaml.v3 v3.0.0-20200121175148-a6ecf24a6d71
## explicit
gopkg.in/yaml.v3
# gotest.tools/v3 v3.0.2
## explicit
# k8s.io/api v0.18.8
k8s.io/api/admissionregistration/v1
k8s.io/api/admissionregistration/v1beta1
@ -287,6 +305,7 @@ k8s.io/api/storage/v1
k8s.io/api/storage/v1alpha1
k8s.io/api/storage/v1beta1
# k8s.io/apimachinery v0.18.8 => k8s.io/apimachinery v0.18.8
## explicit
k8s.io/apimachinery/pkg/api/equality
k8s.io/apimachinery/pkg/api/errors
k8s.io/apimachinery/pkg/api/meta
@ -332,6 +351,7 @@ k8s.io/apimachinery/pkg/watch
k8s.io/apimachinery/third_party/forked/golang/json
k8s.io/apimachinery/third_party/forked/golang/reflect
# k8s.io/cli-runtime v0.17.1 => k8s.io/cli-runtime v0.18.8
## explicit
k8s.io/cli-runtime/pkg/genericclioptions
k8s.io/cli-runtime/pkg/kustomize
k8s.io/cli-runtime/pkg/kustomize/k8sdeps
@ -380,6 +400,7 @@ k8s.io/kube-openapi/pkg/util/proto
# k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89
k8s.io/utils/integer
# sigs.k8s.io/kind v0.8.1
## explicit
sigs.k8s.io/kind/pkg/apis/config/defaults
sigs.k8s.io/kind/pkg/apis/config/v1alpha3
sigs.k8s.io/kind/pkg/apis/config/v1alpha4
@ -443,3 +464,6 @@ sigs.k8s.io/kustomize/pkg/types
sigs.k8s.io/structured-merge-diff/v3/value
# sigs.k8s.io/yaml v1.2.0
sigs.k8s.io/yaml
# k8s.io/apimachinery => k8s.io/apimachinery v0.18.8
# k8s.io/cli-runtime => k8s.io/cli-runtime v0.18.8
# k8s.io/client-go => k8s.io/client-go v0.18.8