Skip to content
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

Why go get path@version is not working #30734

Closed
akhilravuri1 opened this issue Mar 11, 2019 · 1 comment
Closed

Why go get path@version is not working #30734

akhilravuri1 opened this issue Mar 11, 2019 · 1 comment

Comments

@akhilravuri1
Copy link

What version of Go are you using (go version)?

$ go version
go version go1.11.5 windows/amd64

Does this issue reproduce with the latest release?

I Don't know

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\rakhil\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\rakhil\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\rakhil\AppData\Local\Temp\go-build895664346=/tmp/go-build -gno-record-gcc-switches

What did you do?

I was trying to install the branch or version of a package in GitHub.

go get github.com/ibmdb/go_ibm_db@GoPointerFix

What did you expect to see?

Download and the install the GoPointerFix version of go_ibm_db package from GitHub.

What did you see instead?

go: cannot use path@version syntax in GOPATH mode

@bcmills
Copy link
Contributor

bcmills commented Mar 11, 2019

See the paragraph on GO111MODULE in https://golang.org/cmd/go/#hdr-Preliminary_module_support.

@bcmills bcmills closed this as completed Mar 11, 2019
@golang golang locked and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants