Skip to content

"go build github.com/ibm-messaging/mq-golang-jms20: no non-test Go files.." while getting package by go get #14

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

Closed
VladimirDe opened this issue Oct 23, 2020 · 2 comments
Assignees

Comments

@VladimirDe
Copy link

Error with go get github.com/ibm-messaging/mq-golang-jms20@v1.2.0 through any proxy (gocenter.io, proxy.golang.org)

 go version go1.15.2 linux/amd64
  GO111MODULE="on"
  GOARCH="amd64"
  GOBIN=""
  GOCACHE="/root/.cache/go-build"
  GOENV="/root/.config/go/env"
  GOEXE=""
  GOFLAGS=""
  GOHOSTARCH="amd64"
  GOHOSTOS="linux"
  GOINSECURE=""
  GOMODCACHE="/root/go/pkg/mod"
  GONOPROXY=""
  GONOSUMDB="*"
  GOOS="linux"
  GOPATH="/go"
  GOPRIVATE=""
  GOPROXY="https://gocenter.io"
  GOROOT="/go-1.15.2"
  GOSUMDB="sum.golang.org"
  GOTMPDIR=""
  GOTOOLDIR="/go-1.15.2/pkg/tool/linux_amd64"
  GCCGO="gccgo"
 go get -v -u github.com/ibm-messaging/mq-golang-jms20
 go build github.com/ibm-messaging/mq-golang-jms20: no non-test Go files in /go/pkg/mod/github.com/ibm-messaging/mq-golang-jms20@v1.2.0
@matrober-uk matrober-uk self-assigned this Oct 26, 2020
matrober-uk added a commit that referenced this issue Oct 26, 2020
Suppress warning of no non-test Go files in root dir - #14
@matrober-uk
Copy link
Member

Hi @VladimirDe - thanks for your issue report!

There doesn't seem to be a "good" way of suppressing this error in the case where there are deliberately not expected to be any non-test Go files in the root of the repo, so I've merged a PR #15 to adopt one of the common workarounds as described at golang/go#29268 (comment)

Please can you give it a try in your scenario and close out the issue if you are happy it resolves the problem, or add a comment if you find it causes unexpected side effects elsewhere.

Regards,

Matt

@VladimirDe
Copy link
Author

Thank you very much !!! Actually could do it myself (so simple) !!!! I close the issue

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

2 participants