From 10539ce30318f0464b076b55974ed41fa75159fa Mon Sep 17 00:00:00 2001 From: Ian Cottrell Date: Wed, 12 Jun 2019 17:58:43 -0400 Subject: [PATCH] cmd/gopls: preparing for v0.1.0 Change-Id: I6b749858cbba0ec300caa77426ba0ae69a97677d Reviewed-on: https://go-review.googlesource.com/c/tools/+/181997 Run-TryBot: Ian Cottrell Reviewed-by: Rebecca Stambler TryBot-Result: Gobot Gobot --- cmd/gopls/main.go | 2 ++ internal/lsp/debug/info.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/gopls/main.go b/cmd/gopls/main.go index dcd108d9..3111da25 100644 --- a/cmd/gopls/main.go +++ b/cmd/gopls/main.go @@ -13,9 +13,11 @@ import ( "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("", nil), os.Args[1:]) } diff --git a/internal/lsp/debug/info.go b/internal/lsp/debug/info.go index 8f2bf7d2..4ee320fc 100644 --- a/internal/lsp/debug/info.go +++ b/internal/lsp/debug/info.go @@ -20,7 +20,7 @@ const ( ) // Version is a manually-updated mechanism for tracking versions. -const Version = "v0.0.1-20190607+alpha" +var Version = "v0.1.0" // This writes the version and environment information to a writer. func PrintVersionInfo(w io.Writer, verbose bool, mode PrintMode) {