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

x/tools/imports: use /x/ import path for context #25226

Closed
tbpg opened this issue May 2, 2018 · 3 comments
Closed

x/tools/imports: use /x/ import path for context #25226

tbpg opened this issue May 2, 2018 · 3 comments

Comments

@tbpg
Copy link
Contributor

tbpg commented May 2, 2018

Please answer these questions before submitting your issue. Thanks!

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

go version go1.6.4 linux/amd64

Does this issue reproduce with the latest release?

No.

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

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/$USER/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

What did you do?

$ go get -u golang.org/x/tools/imports
package context: unrecognized import path "context" (import path does not begin with hostname)

What did you expect to see?

No errors.

What did you see instead?

An error.

Caused by https://go-review.googlesource.com/c/tools/+/109156. CL coming up.

@gopherbot gopherbot added this to the Unreleased milestone May 2, 2018
@dominikh
Copy link
Member

dominikh commented May 2, 2018

Go 1.6 is super old and no longer supported. Packages in the /x/ repos usually build with the current and previous version of Go.

@gopherbot
Copy link

Change https://golang.org/cl/110935 mentions this issue: x/tools/imports: import context from x/tools

@bradfitz
Copy link
Contributor

bradfitz commented May 2, 2018

Yeah, sorry, we no longer support Go 1.6, except in some rare cases for App Engine users, and even that support won't last much longer. And this tool doesn't apply to App Engine.

@bradfitz bradfitz closed this as completed May 2, 2018
@golang golang locked and limited conversation to collaborators May 2, 2019
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

4 participants