Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugins failed to load #128

Closed
majinghe opened this issue Aug 4, 2021 · 1 comment
Closed

plugins failed to load #128

majinghe opened this issue Aug 4, 2021 · 1 comment

Comments

@majinghe
Copy link
Contributor

majinghe commented Aug 4, 2021

Hi team

when i try to install ksops accroding to the docs

Step 1: gpg and sops are ready

$ sops --version
sops 3.7.1 (latest)

$ gpg --version
gpg (GnuPG/MacGPG2) 2.2.27
libgcrypt 1.8.7
Copyright (C) 2021 Free Software Foundation, Inc.
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /Users/xiaomage/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

Step 2: install kustomize with brew

$ kustomize version
{Version:kustomize/v4.2.0 GitCommit:d53a2ad45d04b0264bcee9e19879437d851cb778 BuildDate:2021-07-01T00:44:28+01:00 GoOs:darwin GoArch:amd64}

Step 3: build sops

$ go get -u github.com/viaduct-ai/kustomize-sops

$ cd $GOPATH/src/github.com/viaduct-ai/kustomize-sops

$ make install

Step 4: running kustomize build --enable-alpha-plugins .

But get the error

2021/08/04 15:44:26 Attempting plugin load from '/Users/xiaomage/.config/kustomize/plugin/viaduct.ai/v1/ksops/ksops.so'
Error: loading generator plugins: plugin /Users/xiaomage/.config/kustomize/plugin/viaduct.ai/v1/ksops/ksops.so fails to load: plugin.Open("/Users/xiaomage/.config/kustomize/plugin/viaduct.ai/v1/ksops/ksops"): plugin was built with a different version of package internal/unsafeheader

My go env is here

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/xiaomage/Library/Caches/go-build"
GOENV="/Users/xiaomage/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/xiaomage/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/xiaomage/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.6"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/27/vc1lcqzn3bl_gx_tk6bdcc9m0000gn/T/go-build2271171652=/tmp/go-build -gno-record-gcc-switches -fno-common"

I tried again and again, but not work? Any suggestion for this, does this caused by the version of kustomize?

@majinghe
Copy link
Contributor Author

majinghe commented Aug 4, 2021

Hi, i have find the root cause, after installing the kustomize using make kustomize instead of brew install kustomize. I will close this issue.

@majinghe majinghe closed this as completed Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant