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

unable to go get golang.org/x/text/language #27796

Closed
komuw opened this issue Sep 21, 2018 · 7 comments
Closed

unable to go get golang.org/x/text/language #27796

komuw opened this issue Sep 21, 2018 · 7 comments
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@komuw
Copy link
Contributor

komuw commented Sep 21, 2018

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

go version go1.11 darwin/amd64

Does this issue reproduce with the latest release?

yes

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

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/hey/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/hey/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/tmp/mydir/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/p5/56z0g6pj6dq0njc1n6wccz4r0000gn/T/go-build190704247=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

mkdir -p /tmp/mydir && \
cd /tmp/mydir && \
go mod init mydir && \
export GO111MODULE=on && go get -v -u golang.org/x/text/language

What did you expect to see?

golang.org/x/text/language to be downloaded and entry added to go.mod

What did you see instead?

Fetching https://golang.org/x/text/language?go-get=1
Parsing meta tags from https://golang.org/x/text/language?go-get=1 (status code 200)
get "golang.org/x/text/language": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/language?go-get=1
get "golang.org/x/text/language": verifying non-authoritative meta tag
Fetching https://golang.org/x/text?go-get=1
Parsing meta tags from https://golang.org/x/text?go-get=1 (status code 200)
go: finding golang.org/x/text/language latest
Fetching https://golang.org/x/text?go-get=1
Parsing meta tags from https://golang.org/x/text?go-get=1 (status code 200)
get "golang.org/x/text": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text?go-get=1
Fetching https://golang.org/x?go-get=1
Parsing meta tags from https://golang.org/x?go-get=1 (status code 200)
Fetching https://golang.org?go-get=1
Parsing meta tags from https://golang.org?go-get=1 (status code 200)
go get golang.org/x/text/language: no matching versions for query "latest"
@komuw
Copy link
Contributor Author

komuw commented Sep 21, 2018

@gopherbot please add modules

@komuw
Copy link
Contributor Author

komuw commented Sep 21, 2018

However the command;
export GO111MODULE=on && go get -u github.com/golang/text/language
works.

@bcmills
Copy link
Contributor

bcmills commented Sep 22, 2018

Likely a duplicate of #27238. What happens if you run go clean -modcache?

@bcmills bcmills added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Sep 22, 2018
@bcmills bcmills added this to the Go1.12 milestone Sep 22, 2018
@bcmills bcmills self-assigned this Sep 22, 2018
@komuw
Copy link
Contributor Author

komuw commented Sep 24, 2018

go clean -modcache && export GO111MODULE=on && go get -v -u golang.org/x/text/language

go: finding golang.org/x/text/language latest
go: finding golang.org/x/text/internal/format latest
go: finding golang.org/x/text/internal/number latest
go: finding golang.org/x/text/internal latest
go: finding golang.org/x/text/feature/plural latest
go: finding golang.org/x/text/feature latest
build mydir: cannot find module for path golang.org/x/text/feature/plural

@komuw
Copy link
Contributor Author

komuw commented Sep 24, 2018

However the following worked:

sudo rm -rf ~/go/pkg/mod/ && export GO111MODULE=on && go get -v -u golang.org/x/text/language

I was using vgo during it's development so that may have corrupted my cache.

@komuw
Copy link
Contributor Author

komuw commented Sep 24, 2018

@bcmills thanks for helping.
I'll leave it upto you whether to leave this open or close it in favor of #27238

@bcmills
Copy link
Contributor

bcmills commented Sep 25, 2018

Thanks for the info. Let's treat this as a dup of #27238.

@bcmills bcmills closed this as completed Sep 25, 2018
@golang golang locked and limited conversation to collaborators Sep 25, 2019
@rsc rsc unassigned bcmills Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants