We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version
$ go version go version go1.11.4 darwin/amd64
Yes (go1.11.4)
go env
$ go env GOARCH="amd64" GOBIN="" GOCACHE="/Users/ahmetb/Library/Caches/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/ahmetb/go" GOPROXY="" GORACE="" GOROOT="/Users/ahmetb/.homebrew/Cellar/go/1.11.4/libexec" GOTMPDIR="" GOTOOLDIR="/Users/ahmetb/.homebrew/Cellar/go/1.11.4/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="" 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/76/5g_jbgjn6xg_jkwcm2n_m52r00dl55/T/go-build263455237=/tmp/go-build -gno-record-gcc-switches -fno-common"
echo $GOPATH
Tried to go-get a package that contains a main, without $GOPATH set.
$ go get github.com/rakyll/hey@v0.1.1
$ go get github.com/rakyll/hey@v0.1.1 go: cannot use path@version syntax in GOPATH mode
but I'm not in $GOPATH mode?
Aside: Right now I'm observing:
despite GOPATH not set, go-get cannot be used to download commands anymore if you're specifying path@version syntax.
with go1.11, you can't download commands with go-get to a custom path like you did in env GOPATH=/a/b go get github.com/foo && a/b/foo pre go1.11.
env GOPATH=/a/b go get github.com/foo && a/b/foo
The text was updated successfully, but these errors were encountered:
Dupe of #29415 argh.
Sorry, something went wrong.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes (go1.11.4)
What operating system and processor architecture are you using (
go env
)?go env
Outputecho $GOPATH
prints nothing in my shell.What did you do?
Tried to go-get a package that contains a main, without $GOPATH set.
What did you expect to see?
What did you see instead?
but I'm not in $GOPATH mode?
Aside: Right now I'm observing:
despite GOPATH not set, go-get cannot be used to download commands anymore if you're specifying path@version syntax.
with go1.11, you can't download commands with go-get to a custom path like you did in
env GOPATH=/a/b go get github.com/foo && a/b/foo
pre go1.11.The text was updated successfully, but these errors were encountered: