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

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

Issue created automatically to collect these failures.

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

    === RUN   TestAdHocContains/Modules
    === PAUSE TestAdHocContains/Modules
    === CONT  TestAdHocContains/Modules
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/fake go list -e -f {{context.ReleaseTags}} -- unsafe
        invoke.go:205: 149.271579ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/fake go list -e -f {{context.ReleaseTags}} -- unsafe
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,DepOnly,Imports,ImportMap,TestImports,XTestImports -compiled=false -test=true -export=false -deps=true -find=false -pgo=off -- /home/swarming/.swarming/w/ir/x/t
        invoke.go:205: 167.387431ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,DepOnly,Imports,ImportMap,TestImports,XTestImports -compiled=false -test=true -export=false -deps=true -find=false -pgo=off -- /home/swarming/.swarming/w/ir/x/t
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/fake go env -json GOMOD GOPATH
        invoke.go:205: 2.329448988s for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/fake go env -json GOMOD GOPATH
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/fake go list -m -json all
        invoke.go:205: 198.164334ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/fake go list -m -json all
        invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,DepOnly,Imports,ImportMap,TestImports,XTestImports -compiled=false -test=true -export=false -deps=true -find=false -pgo=off -- /home/swarming/.swarming/w/ir/x/t/adhoc1270394003.go
        invoke.go:205: 139.934514ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestAdHocContains_Modules2682472817/fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,TestGoFiles,XTestGoFiles,DepOnly,Imports,ImportMap,TestImports,XTestImports -compiled=false -test=true -export=false -deps=true -find=false -pgo=off -- /home/swarming/.swarming/w/ir/x/t/adhoc1270394003.go
    --- FAIL: TestAdHocContains/Modules (4.16s)


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