x/tools/gopls: do not include replace directive in release versions #42627
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Putting together a Play with Go guide on how to use the new
go install $pkg@$version
in Go 1.16 with @mvdan (https://play-with-go.dev/installing-go-programs-directly_go116_en/), we had hoped to be able to usegopls
as our canonical example of a Go program. However:This is as a result of:
https://github.com/golang/tools/blob/ae6603bdc3c4d025cb6c000c3b8dd778b1355266/gopls/go.mod#L14
What did you expect to see?
gopls
install successfully.What did you see instead?
As above.
The current guidance is that release versions of modules should not include replace directives:
https://go.googlesource.com/proposal/+/refs/changes/77/243077/15/design/40276-go-install.md#why-can_t-directory-directives-be-used
Also referencing #26640 for context.
@stamblerre
cc @jayconrod
The text was updated successfully, but these errors were encountered: