-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/go: errors while testing go modules #28336
Comments
The first error message says |
The second error message seems to be accurate. It says See also pierrec/lz4#33. |
I am not aware of any absolute paths in the import statements other than "github.com/...". Basically, all the import paths I see starts with "github.com/..." or a similar github private repo. I have "sync", "time", "container/list" but these are golang packages. May be it is complaining about the absolute path in some dependency which I use ? |
Possibly. Can you attach a code sample and exact commands to reproduce the error? |
So, while initiating the mod I was giving an absolute path for the module like 'go mod init /user/temp' this was the cause of the first error! Now, when I change the module path to something else like 'go mod init user/temp' it works fine. But, if I do 'go test all' I still see this error which is expected as you mentioned earlier.
|
The Please see this https://golang.org/cmd/go/#hdr-Module_maintenance for more info. |
It appears that all of the errors are now accounted for. Is there anything more to do? |
Closing this issue as fixed in part and covered by #28389 for the rest. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?$ go version
go version go1.11 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/sarodi/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/sarodi/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.11/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.11/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/sarodi/temp/stream-service/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/5g/yq5b2dfd7bgf424t0ff3dcmc0000gn/T/go-build557600271=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
Trying the new go modules.
Currently, the repo uses the dep and I want to move from dep to go modules.
Steps followed to move to go modules from dep (As described in https://github.com/golang/go/wiki/Modules):
It builds fine, but when I do go test ./... I see this error.
when I do 'go test all' I see this error:
What did you expect to see?
I expected the transition from dep to go mod with ease.
What did you see instead?
Errors !
The text was updated successfully, but these errors were encountered: