You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ memcached-operator go version
go version go1.13.2 darwin/amd64
➜ memcached-operator go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/work/go/bin"
GOCACHE="/Users/wanmin/Library/Caches/go-build"
GOENV="/Users/wanmin/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/work/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"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/work/go/src/operators/memcached-operator/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/mt/frzqv5qn0bq7ng4m8gdt0k0r0000gn/T/go-build074945428=/tmp/go-build -gno-record-gcc-switches -fno-common"
➜ memcached-operator
➜ memcached-operator operator-sdk version
operator-sdk version: "v0.13.0", commit: "1af9c95bb51420c55a7f7f2b7fabebda24451276", go version: "go1.13.4 darwin/amd64"
➜ memcached-operator
➜ memcached-operator operator-sdk version
operator-sdk version: "v0.13.0", commit: "1af9c95bb51420c55a7f7f2b7fabebda24451276", go version: "go1.13.4 darwin/amd64"
➜ memcached-operator operator-sdk add api --api-version=cache.example.com/v1alpha1 --kind=Memcached
INFO[0000] Generating api version cache.example.com/v1alpha1 for kind Memcached.
INFO[0000] Created pkg/apis/cache/group.go
INFO[0000] Created pkg/apis/cache/v1alpha1/memcached_types.go
INFO[0000] Created pkg/apis/addtoscheme_cache_v1alpha1.go
INFO[0000] Created pkg/apis/cache/v1alpha1/register.go
INFO[0000] Created pkg/apis/cache/v1alpha1/doc.go
INFO[0000] Created deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
Error: api scaffold failed: (error loading API roots ["/work/go/src/operators/memcached-operator/pkg/apis/cache/v1alpha1"]: go [list -e -json -compiled=true -test=false -export=false -deps=true -find=false -tags ignore_autogenerated -- /work/go/src/operators/memcached-operator/pkg/apis/cache/v1alpha1]: exit status 1: go build internal/race: failed to cache compiled Go files
go build unicode: failed to cache compiled Go files
go build unicode/utf8: failed to cache compiled Go files
go build unicode/utf16: failed to cache compiled Go files
go build runtime/internal/sys: failed to cache compiled Go files
go build math/bits: failed to cache compiled Go files
go build k8s.io/apimachinery/pkg/selection: failed to cache compiled Go files
go build encoding: failed to cache compiled Go files
go build internal/nettrace: failed to cache compiled Go files
go build internal/cpu: failed to cache compiled Go files
go build crypto/subtle: failed to cache compiled Go files
go build runtime/internal/atomic: failed to cache compiled Go files
go build crypto/internal/subtle: failed to cache compiled Go files
go build vendor/golang.org/x/crypto/internal/subtle: failed to cache compiled Go files
go build sync/atomic: failed to cache compiled Go files
go build vendor/golang.org/x/crypto/cryptobyte/asn1: failed to cache compiled Go files
go build container/list: failed to cache compiled Go files
go build vendor/golang.org/x/crypto/curve25519: failed to cache compiled Go files
go build runtime/cgo: failed to cache compiled Go files
)
Usage:
operator-sdk add api [flags]
Flags:
--api-version string Kubernetes APIVersion that has a format of $GROUP_NAME/$VERSION (e.g app.example.com/v1alpha1)
-h, --help help for api
--kind string Kubernetes resource Kind name. (e.g AppService)
--skip-generation Skip generation of deepcopy and OpenAPI code and OpenAPI CRD specs
Global Flags:
--verbose Enable verbose logging
➜ memcached-operator
The text was updated successfully, but these errors were encountered:
That specific error message doesn't ring a bell though, so that may not make a difference.
If that doesn't work, what's the contents of your go.mod file? And what steps did you take to build your project? Are you following the user guide or getting started guide?
The text was updated successfully, but these errors were encountered: