Skip to content

Commit 5fe7052

Browse files
authored
fix: update to Knative 0.17 (#145)
Also adjusted some dependencies and overwrite version to align transitive dependencies. Not sure why buildpack uses such an older docker dependency but that clases with the docker dependency that is introduced by knative-dev/test-infra (which is a dependency of the knative direct dependencies) If there is a way to exclude a transitive dependency like that on test-infra, this could be the better way to achieve the same result. The build now works on macOs natively which was not the case before.
1 parent 54e9b27 commit 5fe7052

File tree

4 files changed

+1308
-158
lines changed

4 files changed

+1308
-158
lines changed

go.mod

+26-15
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,34 @@ module github.com/boson-project/faas
33
go 1.14
44

55
require (
6-
github.com/buildpacks/pack v0.13.1
7-
github.com/golang/mock v1.4.3 // indirect
8-
github.com/google/go-containerregistry v0.0.0-20200423114255-8f808463544c // indirect
9-
github.com/imdario/mergo v0.3.10 // indirect
6+
github.com/buildpacks/pack v0.14.0
107
github.com/markbates/pkger v0.17.0
11-
github.com/mattn/go-colorable v0.1.7 // indirect
128
github.com/mitchellh/go-homedir v1.1.0
13-
github.com/onsi/gomega v1.10.1 // indirect
149
github.com/ory/viper v1.7.4
15-
github.com/spf13/cobra v1.0.0
16-
github.com/stretchr/testify v1.5.1 // indirect
17-
golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1 // indirect
10+
github.com/spf13/cobra v1.0.1-0.20200715031239-b95db644ed1c
11+
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f // indirect
1812
gopkg.in/yaml.v2 v2.3.0
19-
k8s.io/api v0.17.4
20-
k8s.io/apimachinery v0.17.4
21-
k8s.io/client-go v0.17.4
22-
knative.dev/client v0.14.0
23-
knative.dev/eventing v0.14.1
24-
knative.dev/serving v0.14.0
13+
k8s.io/api v0.18.8
14+
k8s.io/apimachinery v0.19.1
15+
k8s.io/client-go v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible
16+
knative.dev/client v0.17.0
17+
knative.dev/eventing v0.17.5
18+
knative.dev/serving v0.17.3
19+
)
20+
21+
replace (
22+
// Replace with the version used in docker to overcome an issue with renamed
23+
// packages (and old docker versions)
24+
github.com/Sirupsen/logrus => github.com/sirupsen/logrus v1.7.0
25+
26+
// This is required to pin the docker module to that version that build packs are requiring
27+
// Otherwise it's overwritten by knative-dev/test-infra to a version v.1.13 that is higher
28+
github.com/docker/docker => github.com/docker/docker v1.4.2-0.20200221181110-62bd5a33f707
29+
30+
// Needed for macos
31+
golang.org/x/sys => golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527
32+
33+
// Nail down k8 deps to align with transisitive deps
34+
k8s.io/apimachinery => k8s.io/apimachinery v0.17.6
35+
k8s.io/client-go => k8s.io/client-go v0.17.6
2536
)

0 commit comments

Comments
 (0)