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

cmd/go: GOPATH support in Go 1.17 #47827

Open
ZiyaoQiao opened this issue Aug 19, 2021 · 2 comments
Open

cmd/go: GOPATH support in Go 1.17 #47827

ZiyaoQiao opened this issue Aug 19, 2021 · 2 comments

Comments

@ZiyaoQiao
Copy link

@ZiyaoQiao ZiyaoQiao commented Aug 19, 2021

From the Go blog post:https://go.dev/blog/go116-module-changes, GoPATH support will be dropped in Go1.17, however, after the test, Go 1.17 still supports GOPATH. Also it's not mentioned in the release notes.
Currently, some of our projects are still relying on GOPATH and we're planning to migrate that. So it would be great if we could know when golang will truly drop support fo GOPATH.

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

Go 1.17

Does this issue reproduce with the latest release?

NA

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

amd64/linux

What did you do?

Using GOPATH to import dependencies

What did you expect to see?

Error running the project

What did you see instead?

Running successfully

@ALTree
Copy link
Member

@ALTree ALTree commented Aug 20, 2021

See https://groups.google.com/g/golang-dev/c/hGwvCceDr14/m/On-0pc8OBgAJ

For GOPATH mode for finding, loading, and building packages (i.e., what the go command does with GO111MODULE=off): we don't actually have a concrete plan to remove it yet. There won't be any major change in Go 1.17. It's possible we'll print a deprecation notice in 1.18, but we haven't settled on anything.

@mknyszek
Copy link
Contributor

@mknyszek mknyszek commented Aug 20, 2021

I think @ALTree's link answers your question. Perhaps that should be more visible? I'm not sure if it's necessary.

CC @jayconrod

@mknyszek mknyszek added this to the Go1.18 milestone Aug 20, 2021
@mknyszek mknyszek removed this from the Go1.18 milestone Aug 20, 2021
@mknyszek mknyszek added this to the Backlog milestone Aug 20, 2021
@mknyszek mknyszek changed the title GOPATH support in Go 1.17 cmd/go: GOPATH support in Go 1.17 Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants