-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: installing a module with /v1 at the end corrupts go.mod #26375
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
Comments
@zeebo in slack suggested it might be the v1. So i removed that and republished the logger and now it works.
It seems like a very strange that it bombed in that point. the logger go.mod was fine with the v1. vgo was fine downloading the v1. but once it got into the downstream go.mod it broke with a cryptic message. |
I'm assuming from the ✗ in your prompt that the If so, did it emit any other error messages? The lack of error message alone seems like a problem. |
@bcmills the error that came back before I figured out the issue was. |
|
@trashhalo I think, per your messages on Slack, this is now resolved? |
@myitcv yes the original issue is worked out. I would like to either open a new issue or repurpose this issue to cover the fact that it's failing in a uninitiutive way
Ideally the upstream module would have rejected the go.mod with the v1 |
Agreed: the (The only |
Leaving for Go 1.12. |
I'm not able to reproduce this using the I'll add a regression test, but please let us know if you can still reproduce it somehow. |
Change https://golang.org/cl/153823 mentions this issue: |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?➜ microservice-boilerplate-go git:(master) ✗ vgo version
go version go1.10.3 darwin/amd64 go:2018-02-20.1
Does this issue reproduce with the latest release?
I think this is the latest release of vgo so yes.
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/stephen/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/stephen/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.10.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.10.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
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/xs/bs09x7hj2jqb6hq3frfzrmkh0000gp/T/go-build447972079=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
What did you expect to see?
vgo install would parse the go.mod file it generated
What did you see instead?
vgo refuses to use the go.mod file. looking at it it appears to be valid
The text was updated successfully, but these errors were encountered: