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

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

cmd/go: GOPATH support in Go 1.17 #47827

ZiyaoQiao opened this issue Aug 19, 2021 · 2 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@ZiyaoQiao
Copy link

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 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

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 the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 20, 2021
@mknyszek mknyszek modified the milestones: Go1.18, Backlog 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
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2023
@golang golang locked and limited conversation to collaborators Jan 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

5 participants