安装 kubeless 报错,求帮忙

2020-05-17 15:53:10 +08:00
 dxcqcv

我在arch linux里安装kubeless

yaourt -S kubeless

但发生报错

Build Kubeless Components binaries
go: inconsistent vendoring in /tmp/yaourt-tmp-clyde/aur-kubeless/src/gopath/src/github.com/kubeless/kubeless:
golang.org/x/net@v0.0.0-20200226121028-0de0cce0169b: is explicitly required in go.mod, but vendor/modules.txt indicates golang.org/x/net@v0.0.0-20190125091013-d26f9f9a57f3

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory
make: *** [Makefile:26: binary] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build kubeless.

感觉是go版本不一致,但怎么升级本地的vendor/modules.txt,求助

1407 次点击
所在节点    问与答
1 条回复
dxcqcv
2020-05-17 16:08:34 +08:00
然后我在` /tmp/yaourt-tmp-clyde/aur-kubeless/src/gopath/src/github.com/kubeless/kubeless`里运行了

`go mod vendor`

依然得到以下错误

```

go: finding module for package github.com/ksonnet/ksonnet-lib/ksonnet-gen/kubespec
go: finding module for package github.com/google/go-jsonnet/ast
go: finding module for package github.com/go-openapi/spec
go: finding module for package github.com/ksonnet/ksonnet-lib/ksonnet-gen/jsonnet
go: finding module for package github.com/go-openapi/swag
go: finding module for package github.com/google/go-jsonnet/parser
go: finding module for package github.com/blang/semver
go: finding module for package github.com/ksonnet/ksonnet-lib/ksonnet-gen/nodemaker
go: finding module for package github.com/ksonnet/ksonnet-lib/ksonnet-gen/kubeversion
go: finding module for package github.com/ksonnet/ksonnet-lib/ksonnet-gen/printer
go: finding module for package github.com/ksonnet/ksonnet-lib/ksonnet-gen/astext
go: finding module for package github.com/ksonnet/ksonnet-lib/ksonnet-gen/ksonnet
go: found github.com/ksonnet/ksonnet-lib/ksonnet-gen/ksonnet in github.com/ksonnet/ksonnet-lib v0.1.12
go: found github.com/google/go-jsonnet/ast in github.com/google/go-jsonnet v0.15.0
go: found github.com/blang/semver in github.com/blang/semver v3.5.1+incompatible
go: found github.com/go-openapi/spec in github.com/go-openapi/spec v0.19.8
go: found github.com/go-openapi/swag in github.com/go-openapi/swag v0.19.9
go: finding module for package github.com/google/go-jsonnet/parser
github.com/kubeless/kubeless/ksonnet-lib/ksonnet-gen/printer imports
github.com/google/go-jsonnet/parser: module github.com/google/go-jsonnet@latest found (v0.15.0), but does not contain package github.com/google/go-jsonnet/parser
```

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/672582

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX