1
0
mirror of https://github.com/golang/go synced 2024-10-01 05:28:33 -06:00
go/internal/lsp/mod
Rohan Challa 428f1ab0ca internal/lsp/mod: test go.mod is unchanged when tempModfile=true
This change adds a test to ensure that your go.mod file remains unchanged when the tempModfile flag is activated. Specifically, it adds a test to ensure that a go directive does not get added to a user's go.mod file when there was not one included before.

Updates golang/go#36247

Change-Id: If8db5508ace5b7222112408255ffa66e4d38797f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/214260
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-01-10 14:27:00 +00:00
..
testdata internal/lsp/mod: test go.mod is unchanged when tempModfile=true 2020-01-10 14:27:00 +00:00
diagnostics.go internal/lsp: add warning diagnostics for unused dependencies in go.mod files 2020-01-09 20:05:13 +00:00
mod_test.go internal/lsp/mod: test go.mod is unchanged when tempModfile=true 2020-01-10 14:27:00 +00:00