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/gopls: cannot install gopls v0.6.8 #45099

Closed
artyom opened this issue Mar 18, 2021 · 3 comments
Closed

x/tools/gopls: cannot install gopls v0.6.8 #45099

artyom opened this issue Mar 18, 2021 · 3 comments
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@artyom
Copy link
Member

artyom commented Mar 18, 2021

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

$ go version
go version go1.16.2 darwin/arm64

Does this issue reproduce with the latest release?

N/a

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

go env Output
$ go env
GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/artyom/Library/Caches/go-build"
GOENV="/Users/artyom/Library/Application Support/go/env"
GOEXE=""
GOFLAGS="-ldflags=-w -trimpath"
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/artyom/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/artyom/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/artyom/Library/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/artyom/Library/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.16.2"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lb/3rk8rqs53czgb4v35w_342xc0000gn/T/go-build459584806=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Tried to install gopls/v0.6.8 release:

What did you expect to see?

~ ¶ go install golang.org/x/tools/[email protected] ; echo $?
0

What did you see instead?

~ ¶ go install golang.org/x/tools/[email protected] ; echo $?
go install golang.org/x/tools/[email protected]: golang.org/x/tools/[email protected]
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.
1
@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Mar 18, 2021
@gopherbot gopherbot added this to the Unreleased milestone Mar 18, 2021
@komem3
Copy link

komem3 commented Mar 19, 2021

I think this is happening for the same reason as #42627. It looks like need to remove the replace in go.mod.

@stamblerre
Copy link
Contributor

Yes, this was a mistake in our release process--the replace directive should have been removed. We will be looking into improving our release process soon, so hopefully this will not happen again.

@stamblerre
Copy link
Contributor

For now, please install gopls by using go get golang.org/x/tools/[email protected].

@golang golang locked and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

4 participants