From 8647d4c87977ec65bfce87fe963652c71cd2e0db Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Tue, 24 Dec 2019 17:45:46 -0500 Subject: [PATCH] cmd/gopls: delete legacy gopls gopls should always be built in module mode from the gopls module. I don't think that anyone is relying on this anymore, and we should stop allowing users to build gopls from within the tools module. Change-Id: I7dea4339d4c8ffc4ca168e679b810be743e5f92c Reviewed-on: https://go-review.googlesource.com/c/tools/+/212520 Run-TryBot: Rebecca Stambler TryBot-Result: Gobot Gobot Reviewed-by: Heschi Kreinick --- cmd/gopls/main.go | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 cmd/gopls/main.go diff --git a/cmd/gopls/main.go b/cmd/gopls/main.go deleted file mode 100644 index 6b6e735492..0000000000 --- a/cmd/gopls/main.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// The gopls command is an LSP server for Go. -// The Language Server Protocol allows any text editor -// to be extended with IDE-like features; -// see https://langserver.org/ for details. -package main // import "golang.org/x/tools/cmd/gopls" - -import ( - "context" - "os" - - "golang.org/x/tools/internal/lsp/cmd" - "golang.org/x/tools/internal/lsp/debug" - "golang.org/x/tools/internal/tool" -) - -func main() { - debug.Version += "-cmd.gopls" - tool.Main(context.Background(), cmd.New("gopls-legacy", "", nil, nil), os.Args[1:]) -}