Repository: go
Issue: x/tools/go/packages: TestConfigDir/Modules failures
Labels: NeedsInvestigation,Tools

```
#!watchflakes
default <- pkg == "golang.org/x/tools/go/packages" && test == "TestConfigDir/Modules"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8730195721421005729)):

    === RUN   TestConfigDir/Modules
    === PAUSE TestConfigDir/Modules
    === CONT  TestConfigDir/Modules
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/b go list -e -f {{context.ReleaseTags}} -- unsafe
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/b go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
        invoke.go:205: 44.839994ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/b go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
        invoke.go:205: 109.735521ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/b go list -e -f {{context.ReleaseTags}} -- unsafe
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/b go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,TestImports,XTestImports,Module -compiled=true -test=true -export=true -deps=true -find=false -pgo=off -- golang.org/fake/a
        invoke.go:205: 331.929773ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/b go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,TestImports,XTestImports,Module -compiled=true -test=true -export=true -deps=true -find=false -pgo=off -- golang.org/fake/a
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/b go list -e -f {{context.ReleaseTags}} -- unsafe
    ...
        invoke.go:205: 298.264074ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/a go list -e -f {{context.ReleaseTags}} -- unsafe
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/a go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,TestImports,XTestImports,Module -compiled=true -test=true -export=true -deps=true -find=false -pgo=off -- ./a
        invoke.go:205: 116.291411ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/a go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,TestImports,XTestImports,Module -compiled=true -test=true -export=true -deps=true -find=false -pgo=off -- ./a
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/a go list -e -f {{context.ReleaseTags}} -- unsafe
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/a go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
        invoke.go:205: 746.937702ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/a go list -e -f {{context.ReleaseTags}} -- unsafe
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/a go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,TestImports,XTestImports,Module -compiled=true -test=true -export=true -deps=true -find=false -pgo=off -- ./b
        invoke.go:205: 580.889406ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/a go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
        invoke.go:205: 913.050791ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestConfigDir_Modules2760053777/fake/a go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,TestImports,XTestImports,Module -compiled=true -test=true -export=true -deps=true -find=false -pgo=off -- ./b
    --- FAIL: TestConfigDir/Modules (9.69s)


— [watchflakes](https://go.dev/wiki/Watchflakes)