go-release.action icon indicating copy to clipboard operation
go-release.action copied to clipboard

Failure to build the binaries

Open akhettar opened this issue 4 years ago • 0 comments

Hello there,

I am trying to release the binaries in my Github project odfe-kibana-sync but it is failing with no obvious reason - see below a snippet from the pipeline log.

I suspect this is due to this dependency: https://github.com/spf13/cobra. Any idea how to proceed?

Kind regards,

Ayache

`Run ngs/[email protected] env: GITHUB_TOKEN: *** GOARCH: arm64 GOOS: linux EXTRA_FILES: LICENSE /usr/bin/docker run --name e492553ed176de4ffd900b3a6f454da009_5bcc2e --label 5588e4 --workdir /github/workspace --rm -e GITHUB_TOKEN -e GOARCH -e GOOS -e EXTRA_FILES -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/odfe-kibana-sync/odfe-kibana-sync":"/github/workspace" 5588e4:92553ed176de4ffd900b3a6f454da009

  • /build.sh
  • PROJECT_ROOT=/go/src/github.com/akhettar/odfe-kibana-sync
  • mkdir -p /go/src/github.com/akhettar/odfe-kibana-sync
  • rmdir /go/src/github.com/akhettar/odfe-kibana-sync
  • ln -s /github/workspace /go/src/github.com/akhettar/odfe-kibana-sync
  • cd /go/src/github.com/akhettar/odfe-kibana-sync
  • go get -v ./... go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src; ignoring go.mod; see 'go help modules' github.com/spf13/cobra (download) github.com/spf13/pflag (download) errors internal/cpu internal/race runtime/internal/atomic internal/bytealg runtime/internal/sys sync/atomic runtime unicode unicode/utf8 encoding math math/bits strconv internal/testlog unicode/utf16 container/list crypto/internal/subtle crypto/subtle crypto/rc4 vendor/golang_org/x/crypto/cryptobyte/asn1 vendor/golang_org/x/net/dns/dnsmessage internal/nettrace github.com/akhettar/odfe-kibana-sync/model sync io reflect bytes syscall time encoding/binary encoding/base64 internal/syscall/unix sort internal/poll strings os hash crypto crypto/cipher fmt crypto/aes crypto/des encoding/json math/rand math/big crypto/internal/randutil crypto/sha512 crypto/hmac crypto/md5 bufio crypto/sha1 crypto/elliptic encoding/asn1 crypto/rand crypto/ecdsa crypto/rsa crypto/sha256 crypto/dsa encoding/hex encoding/pem crypto/x509/pkix vendor/golang_org/x/crypto/cryptobyte path/filepath io/ioutil context internal/singleflight net/url net vendor/golang_org/x/crypto/internal/chacha20 vendor/golang_org/x/crypto/poly1305 vendor/golang_org/x/crypto/chacha20poly1305 vendor/golang_org/x/crypto/curve25519 compress/flate hash/crc32 compress/gzip vendor/golang_org/x/text/transform log vendor/golang_org/x/text/unicode/bidi vendor/golang_org/x/text/secure/bidirule vendor/golang_org/x/text/unicode/norm crypto/x509 vendor/golang_org/x/net/idna crypto/tls net/textproto vendor/golang_org/x/net/http/httpguts vendor/golang_org/x/net/http/httpproxy vendor/golang_org/x/net/http2/hpack mime mime/quotedprintable mime/multipart net/http/httptrace net/http/internal path encoding/csv net/http flag github.com/spf13/pflag text/template/parse text/template github.com/spf13/cobra

github.com/spf13/cobra

../../spf13/cobra/bash_completions.go:22:24: undefined: io.StringWriter ../../spf13/cobra/bash_completions.go:383:26: undefined: io.StringWriter ../../spf13/cobra/bash_completions.go:423:24: undefined: io.StringWriter ../../spf13/cobra/bash_completions.go:435:27: undefined: io.StringWriter ../../spf13/cobra/bash_completions.go:473:25: undefined: io.StringWriter ../../spf13/cobra/bash_completions.go:484:20: undefined: io.StringWriter ../../spf13/cobra/bash_completions.go:499:38: undefined: io.StringWriter ../../spf13/cobra/bash_completions.go:525:21: undefined: io.StringWriter ../../spf13/cobra/bash_completions.go:562:28: undefined: io.StringWriter ../../spf13/cobra/bash_completions.go:587:29: undefined: io.StringWriter ../../spf13/cobra/bash_completions.go:587:29: too many errors github.com/akhettar/odfe-kibana-sync/client `

akhettar avatar Feb 15 '21 18:02 akhettar