go/go
Rohan Challa 64a0f23fc3 go/packages/packagestest: do not overwrite existing go.mod file
This change adds support for testing go.mod files within packagestest. Primarily, if there are markers in the go.mod file, this will copy the contents to a temporary file, build the modcache, then set the contents back.

Updates golang/go#36091

Change-Id: Icb707906eb7fc9e4a06fe043f94f34d9223d84c9
Reviewed-on: https://go-review.googlesource.com/c/tools/+/216839
Run-TryBot: Rohan Challa <rohan@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-02-06 15:23:23 +00:00
..
analysis all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
ast go/ast/inspector: fix misnomer in callback signature 2020-01-22 04:22:41 +00:00
buildutil all: fix more typos 2019-09-11 15:13:14 +00:00
callgraph all: add a space before +build in build tag comments 2019-09-08 12:23:18 +00:00
cfg all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
expect go/packages/packagestest: do not overwrite existing go.mod file 2020-02-06 15:23:23 +00:00
gccgoexportdata
gcexportdata go/gcexportdata: use IExportData when writing gcexportdata 2019-10-04 02:16:33 +00:00
internal all: revert uses of types.NewInterfaceType 2020-01-30 00:23:26 +00:00
loader Revert "go/packages: temporarily disable some tests running on go tip with -race" 2019-10-28 14:32:39 +00:00
packages go/packages/packagestest: do not overwrite existing go.mod file 2020-02-06 15:23:23 +00:00
pointer all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
ssa go/expect: add marker support for go.mod files 2020-01-31 16:11:17 +00:00
types all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
vcs go/vcs: ignore "mod" VCS type 2019-05-06 14:53:03 +00:00