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: how to "go get golang.org/x/tools/cmd/stringer" in golang-1.4? #13874

Closed
nawa opened this issue Jan 8, 2016 · 3 comments
Closed

x/tools: how to "go get golang.org/x/tools/cmd/stringer" in golang-1.4? #13874

nawa opened this issue Jan 8, 2016 · 3 comments
Milestone

Comments

@nawa
Copy link

nawa commented Jan 8, 2016

After changes in golang/tools@542ffc7 I can't install stringer in clean environment with golang-1.4.x using go get golang.org/x/tools/cmd/stringer

Examples with docker for golang 1.4 and 1.5

docker run --rm golang:1.4 go get golang.org/x/tools/cmd/stringer
package golang.org/x/tools/cmd/stringer
    imports go/constant: unrecognized import path "go/constant"
package golang.org/x/tools/cmd/stringer
    imports go/importer: unrecognized import path "go/importer"
package golang.org/x/tools/cmd/stringer
    imports go/types: unrecognized import path "go/types"
docker run --rm golang:1.5 go get golang.org/x/tools/cmd/stringer
#works without errors

How to install stringer in golang-1.4 environment?

@ianlancetaylor ianlancetaylor changed the title How to "go get golang.org/x/tools/cmd/stringer" in golang-1.4? x/tools: how to "go get golang.org/x/tools/cmd/stringer" in golang-1.4? Jan 8, 2016
@ianlancetaylor ianlancetaylor added this to the Unreleased milestone Jan 8, 2016
@ianlancetaylor
Copy link
Contributor

CC @alandonovan @griesemer

@griesemer
Copy link
Contributor

@bradfitz
Copy link
Contributor

Verified this is fixed.

bradfitz@laptop ~$ go version
go version go1.4.2 darwin/amd64
bradfitz@laptop ~$ go get -u -a golang.org/x/tools/cmd/stringer
bradfitz@laptop ~$ 

@golang golang locked and limited conversation to collaborators Jan 13, 2017
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

6 participants