V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
dxcqcv
V2EX  ›  问与答

安装 kubeless 报错,求帮忙

  •  
  •   dxcqcv · 2020-05-17 15:53:10 +08:00 · 1388 次点击
    这是一个创建于 1642 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我在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/[email protected]: is explicitly required in go.mod, but vendor/modules.txt indicates golang.org/x/[email protected]
    
    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,求助

    1 条回复    2020-05-17 16:08:34 +08:00
    dxcqcv
        1
    dxcqcv  
    OP
       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
    ```
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1267 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 18:12 · PVG 02:12 · LAX 10:12 · JFK 13:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.