golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.86k stars 17.65k forks source link

src/cmd: source code is unusable. #59574

Closed vault-thirteen closed 1 year ago

vault-thirteen commented 1 year ago

What version of Go are you using (go version)?

1.20.3

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

Windows 10, Intel x86-64.

What did you do?

J:\Go\src\github.com\golang\go\src\cmd>go mod tidy cmd/addr2line: ambiguous import: found package cmd/addr2line in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\addr2line) (D:\Program Files\Go\src\cmd\addr2line) cmd/api: ambiguous import: found package cmd/api in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\api) (D:\Program Files\Go\src\cmd\api) cmd/asm: ambiguous import: found package cmd/asm in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\asm) (D:\Program Files\Go\src\cmd\asm) cmd/asm/internal/arch: ambiguous import: found package cmd/asm/internal/arch in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\asm\internal\arch) (D:\Program Files\Go\src\cmd\asm\internal\arch) cmd/asm/internal/asm: ambiguous import: found package cmd/asm/internal/asm in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\asm\internal\asm) (D:\Program Files\Go\src\cmd\asm\internal\asm) cmd/asm/internal/flags: ambiguous import: found package cmd/asm/internal/flags in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\asm\internal\flags) (D:\Program Files\Go\src\cmd\asm\internal\flags) cmd/asm/internal/lex: ambiguous import: found package cmd/asm/internal/lex in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\asm\internal\lex) (D:\Program Files\Go\src\cmd\asm\internal\lex) cmd/buildid: ambiguous import: found package cmd/buildid in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\buildid) (D:\Program Files\Go\src\cmd\buildid) cmd/cgo: ambiguous import: found package cmd/cgo in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\cgo) (D:\Program Files\Go\src\cmd\cgo) cmd/compile: ambiguous import: found package cmd/compile in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile) (D:\Program Files\Go\src\cmd\compile) cmd/compile/internal/abi: ambiguous import: found package cmd/compile/internal/abi in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\abi) (D:\Program Files\Go\src\cmd\compile\internal\abi) cmd/compile/internal/abt: ambiguous import: found package cmd/compile/internal/abt in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\abt) (D:\Program Files\Go\src\cmd\compile\internal\abt) cmd/compile/internal/amd64: ambiguous import: found package cmd/compile/internal/amd64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\amd64) (D:\Program Files\Go\src\cmd\compile\internal\amd64) cmd/compile/internal/arm: ambiguous import: found package cmd/compile/internal/arm in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\arm) (D:\Program Files\Go\src\cmd\compile\internal\arm) cmd/compile/internal/arm64: ambiguous import: found package cmd/compile/internal/arm64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\arm64) (D:\Program Files\Go\src\cmd\compile\internal\arm64) cmd/compile/internal/base: ambiguous import: found package cmd/compile/internal/base in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\base) (D:\Program Files\Go\src\cmd\compile\internal\base) cmd/compile/internal/bitvec: ambiguous import: found package cmd/compile/internal/bitvec in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\bitvec) (D:\Program Files\Go\src\cmd\compile\internal\bitvec) cmd/compile/internal/compare: ambiguous import: found package cmd/compile/internal/compare in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\compare) (D:\Program Files\Go\src\cmd\compile\internal\compare) cmd/compile/internal/coverage: ambiguous import: found package cmd/compile/internal/coverage in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\coverage) (D:\Program Files\Go\src\cmd\compile\internal\coverage) cmd/compile/internal/deadcode: ambiguous import: found package cmd/compile/internal/deadcode in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\deadcode) (D:\Program Files\Go\src\cmd\compile\internal\deadcode) cmd/compile/internal/devirtualize: ambiguous import: found package cmd/compile/internal/devirtualize in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\devirtualize) (D:\Program Files\Go\src\cmd\compile\internal\devirtualize) cmd/compile/internal/dwarfgen: ambiguous import: found package cmd/compile/internal/dwarfgen in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\dwarfgen) (D:\Program Files\Go\src\cmd\compile\internal\dwarfgen) cmd/compile/internal/escape: ambiguous import: found package cmd/compile/internal/escape in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\escape) (D:\Program Files\Go\src\cmd\compile\internal\escape) cmd/compile/internal/gc: ambiguous import: found package cmd/compile/internal/gc in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\gc) (D:\Program Files\Go\src\cmd\compile\internal\gc) cmd/compile/internal/importer: ambiguous import: found package cmd/compile/internal/importer in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\importer) (D:\Program Files\Go\src\cmd\compile\internal\importer) cmd/compile/internal/inline: ambiguous import: found package cmd/compile/internal/inline in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\inline) (D:\Program Files\Go\src\cmd\compile\internal\inline) cmd/compile/internal/ir: ambiguous import: found package cmd/compile/internal/ir in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\ir) (D:\Program Files\Go\src\cmd\compile\internal\ir) cmd/compile/internal/liveness: ambiguous import: found package cmd/compile/internal/liveness in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\liveness) (D:\Program Files\Go\src\cmd\compile\internal\liveness) cmd/compile/internal/logopt: ambiguous import: found package cmd/compile/internal/logopt in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\logopt) (D:\Program Files\Go\src\cmd\compile\internal\logopt) cmd/compile/internal/loong64: ambiguous import: found package cmd/compile/internal/loong64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\loong64) (D:\Program Files\Go\src\cmd\compile\internal\loong64) cmd/compile/internal/mips: ambiguous import: found package cmd/compile/internal/mips in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\mips) (D:\Program Files\Go\src\cmd\compile\internal\mips) cmd/compile/internal/mips64: ambiguous import: found package cmd/compile/internal/mips64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\mips64) (D:\Program Files\Go\src\cmd\compile\internal\mips64) cmd/compile/internal/noder: ambiguous import: found package cmd/compile/internal/noder in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\noder) (D:\Program Files\Go\src\cmd\compile\internal\noder) cmd/compile/internal/objw: ambiguous import: found package cmd/compile/internal/objw in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\objw) (D:\Program Files\Go\src\cmd\compile\internal\objw) cmd/compile/internal/pgo: ambiguous import: found package cmd/compile/internal/pgo in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\pgo) (D:\Program Files\Go\src\cmd\compile\internal\pgo) cmd/compile/internal/pkginit: ambiguous import: found package cmd/compile/internal/pkginit in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\pkginit) (D:\Program Files\Go\src\cmd\compile\internal\pkginit) cmd/compile/internal/ppc64: ambiguous import: found package cmd/compile/internal/ppc64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\ppc64) (D:\Program Files\Go\src\cmd\compile\internal\ppc64) cmd/compile/internal/reflectdata: ambiguous import: found package cmd/compile/internal/reflectdata in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\reflectdata) (D:\Program Files\Go\src\cmd\compile\internal\reflectdata) cmd/compile/internal/riscv64: ambiguous import: found package cmd/compile/internal/riscv64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\riscv64) (D:\Program Files\Go\src\cmd\compile\internal\riscv64) cmd/compile/internal/s390x: ambiguous import: found package cmd/compile/internal/s390x in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\s390x) (D:\Program Files\Go\src\cmd\compile\internal\s390x) cmd/compile/internal/ssa: ambiguous import: found package cmd/compile/internal/ssa in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\ssa) (D:\Program Files\Go\src\cmd\compile\internal\ssa) cmd/compile/internal/ssagen: ambiguous import: found package cmd/compile/internal/ssagen in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\ssagen) (D:\Program Files\Go\src\cmd\compile\internal\ssagen) cmd/compile/internal/staticdata: ambiguous import: found package cmd/compile/internal/staticdata in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\staticdata) (D:\Program Files\Go\src\cmd\compile\internal\staticdata) cmd/compile/internal/staticinit: ambiguous import: found package cmd/compile/internal/staticinit in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\staticinit) (D:\Program Files\Go\src\cmd\compile\internal\staticinit) cmd/compile/internal/syntax: ambiguous import: found package cmd/compile/internal/syntax in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\syntax) (D:\Program Files\Go\src\cmd\compile\internal\syntax) cmd/compile/internal/test: ambiguous import: found package cmd/compile/internal/test in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\test) (D:\Program Files\Go\src\cmd\compile\internal\test) cmd/compile/internal/typebits: ambiguous import: found package cmd/compile/internal/typebits in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\typebits) (D:\Program Files\Go\src\cmd\compile\internal\typebits) cmd/compile/internal/typecheck: ambiguous import: found package cmd/compile/internal/typecheck in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\typecheck) (D:\Program Files\Go\src\cmd\compile\internal\typecheck) cmd/compile/internal/types: ambiguous import: found package cmd/compile/internal/types in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\types) (D:\Program Files\Go\src\cmd\compile\internal\types) cmd/compile/internal/types2: ambiguous import: found package cmd/compile/internal/types2 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\types2) (D:\Program Files\Go\src\cmd\compile\internal\types2) cmd/compile/internal/walk: ambiguous import: found package cmd/compile/internal/walk in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\walk) (D:\Program Files\Go\src\cmd\compile\internal\walk) cmd/compile/internal/wasm: ambiguous import: found package cmd/compile/internal/wasm in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\wasm) (D:\Program Files\Go\src\cmd\compile\internal\wasm) cmd/compile/internal/x86: ambiguous import: found package cmd/compile/internal/x86 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\compile\internal\x86) (D:\Program Files\Go\src\cmd\compile\internal\x86) cmd/covdata: ambiguous import: found package cmd/covdata in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\covdata) (D:\Program Files\Go\src\cmd\covdata) cmd/cover: ambiguous import: found package cmd/cover in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\cover) (D:\Program Files\Go\src\cmd\cover) cmd/dist: ambiguous import: found package cmd/dist in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\dist) (D:\Program Files\Go\src\cmd\dist) cmd/doc: ambiguous import: found package cmd/doc in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\doc) (D:\Program Files\Go\src\cmd\doc) cmd/fix: ambiguous import: found package cmd/fix in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\fix) (D:\Program Files\Go\src\cmd\fix) cmd/go: ambiguous import: found package cmd/go in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go) (D:\Program Files\Go\src\cmd\go) cmd/go/internal/auth: ambiguous import: found package cmd/go/internal/auth in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\auth) (D:\Program Files\Go\src\cmd\go\internal\auth) cmd/go/internal/base: ambiguous import: found package cmd/go/internal/base in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\base) (D:\Program Files\Go\src\cmd\go\internal\base) cmd/go/internal/bug: ambiguous import: found package cmd/go/internal/bug in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\bug) (D:\Program Files\Go\src\cmd\go\internal\bug) cmd/go/internal/cache: ambiguous import: found package cmd/go/internal/cache in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\cache) (D:\Program Files\Go\src\cmd\go\internal\cache) cmd/go/internal/cfg: ambiguous import: found package cmd/go/internal/cfg in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\cfg) (D:\Program Files\Go\src\cmd\go\internal\cfg) cmd/go/internal/clean: ambiguous import: found package cmd/go/internal/clean in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\clean) (D:\Program Files\Go\src\cmd\go\internal\clean) cmd/go/internal/cmdflag: ambiguous import: found package cmd/go/internal/cmdflag in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\cmdflag) (D:\Program Files\Go\src\cmd\go\internal\cmdflag) cmd/go/internal/doc: ambiguous import: found package cmd/go/internal/doc in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\doc) (D:\Program Files\Go\src\cmd\go\internal\doc) cmd/go/internal/envcmd: ambiguous import: found package cmd/go/internal/envcmd in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\envcmd) (D:\Program Files\Go\src\cmd\go\internal\envcmd) cmd/go/internal/fix: ambiguous import: found package cmd/go/internal/fix in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\fix) (D:\Program Files\Go\src\cmd\go\internal\fix) cmd/go/internal/fmtcmd: ambiguous import: found package cmd/go/internal/fmtcmd in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\fmtcmd) (D:\Program Files\Go\src\cmd\go\internal\fmtcmd) cmd/go/internal/fsys: ambiguous import: found package cmd/go/internal/fsys in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\fsys) (D:\Program Files\Go\src\cmd\go\internal\fsys) cmd/go/internal/generate: ambiguous import: found package cmd/go/internal/generate in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\generate) (D:\Program Files\Go\src\cmd\go\internal\generate) cmd/go/internal/get: ambiguous import: found package cmd/go/internal/get in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\get) (D:\Program Files\Go\src\cmd\go\internal\get) cmd/go/internal/help: ambiguous import: found package cmd/go/internal/help in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\help) (D:\Program Files\Go\src\cmd\go\internal\help) cmd/go/internal/imports: ambiguous import: found package cmd/go/internal/imports in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\imports) (D:\Program Files\Go\src\cmd\go\internal\imports) cmd/go/internal/list: ambiguous import: found package cmd/go/internal/list in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\list) (D:\Program Files\Go\src\cmd\go\internal\list) cmd/go/internal/load: ambiguous import: found package cmd/go/internal/load in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\load) (D:\Program Files\Go\src\cmd\go\internal\load) cmd/go/internal/lockedfile: ambiguous import: found package cmd/go/internal/lockedfile in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\lockedfile) (D:\Program Files\Go\src\cmd\go\internal\lockedfile) cmd/go/internal/lockedfile/internal/filelock: ambiguous import: found package cmd/go/internal/lockedfile/internal/filelock in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\lockedfile\internal\filelock) (D:\Program Files\Go\src\cmd\go\internal\lockedfile\internal\filelock) cmd/go/internal/mmap: ambiguous import: found package cmd/go/internal/mmap in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\mmap) (D:\Program Files\Go\src\cmd\go\internal\mmap) cmd/go/internal/modcmd: ambiguous import: found package cmd/go/internal/modcmd in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\modcmd) (D:\Program Files\Go\src\cmd\go\internal\modcmd) cmd/go/internal/modconv: ambiguous import: found package cmd/go/internal/modconv in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\modconv) (D:\Program Files\Go\src\cmd\go\internal\modconv) cmd/go/internal/modfetch: ambiguous import: found package cmd/go/internal/modfetch in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\modfetch) (D:\Program Files\Go\src\cmd\go\internal\modfetch) cmd/go/internal/modfetch/codehost: ambiguous import: found package cmd/go/internal/modfetch/codehost in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\modfetch\codehost) (D:\Program Files\Go\src\cmd\go\internal\modfetch\codehost) cmd/go/internal/modfetch/zip_sum_test: ambiguous import: found package cmd/go/internal/modfetch/zip_sum_test in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\modfetch\zip_sum_test) (D:\Program Files\Go\src\cmd\go\internal\modfetch\zip_sum_test) cmd/go/internal/modget: ambiguous import: found package cmd/go/internal/modget in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\modget) (D:\Program Files\Go\src\cmd\go\internal\modget) cmd/go/internal/modindex: ambiguous import: found package cmd/go/internal/modindex in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\modindex) (D:\Program Files\Go\src\cmd\go\internal\modindex) cmd/go/internal/modinfo: ambiguous import: found package cmd/go/internal/modinfo in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\modinfo) (D:\Program Files\Go\src\cmd\go\internal\modinfo) cmd/go/internal/modload: ambiguous import: found package cmd/go/internal/modload in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\modload) (D:\Program Files\Go\src\cmd\go\internal\modload) cmd/go/internal/mvs: ambiguous import: found package cmd/go/internal/mvs in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\mvs) (D:\Program Files\Go\src\cmd\go\internal\mvs) cmd/go/internal/par: ambiguous import: found package cmd/go/internal/par in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\par) (D:\Program Files\Go\src\cmd\go\internal\par) cmd/go/internal/robustio: ambiguous import: found package cmd/go/internal/robustio in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\robustio) (D:\Program Files\Go\src\cmd\go\internal\robustio) cmd/go/internal/run: ambiguous import: found package cmd/go/internal/run in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\run) (D:\Program Files\Go\src\cmd\go\internal\run) cmd/go/internal/script: ambiguous import: found package cmd/go/internal/script in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\script) (D:\Program Files\Go\src\cmd\go\internal\script) cmd/go/internal/script/scripttest: ambiguous import: found package cmd/go/internal/script/scripttest in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\script\scripttest) (D:\Program Files\Go\src\cmd\go\internal\script\scripttest) cmd/go/internal/search: ambiguous import: found package cmd/go/internal/search in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\search) (D:\Program Files\Go\src\cmd\go\internal\search) cmd/go/internal/str: ambiguous import: found package cmd/go/internal/str in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\str) (D:\Program Files\Go\src\cmd\go\internal\str) cmd/go/internal/test: ambiguous import: found package cmd/go/internal/test in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\test) (D:\Program Files\Go\src\cmd\go\internal\test) cmd/go/internal/test/internal/genflags: ambiguous import: found package cmd/go/internal/test/internal/genflags in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\test\internal\genflags) (D:\Program Files\Go\src\cmd\go\internal\test\internal\genflags) cmd/go/internal/tool: ambiguous import: found package cmd/go/internal/tool in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\tool) (D:\Program Files\Go\src\cmd\go\internal\tool) cmd/go/internal/trace: ambiguous import: found package cmd/go/internal/trace in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\trace) (D:\Program Files\Go\src\cmd\go\internal\trace) cmd/go/internal/vcs: ambiguous import: found package cmd/go/internal/vcs in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\vcs) (D:\Program Files\Go\src\cmd\go\internal\vcs) cmd/go/internal/vcweb: ambiguous import: found package cmd/go/internal/vcweb in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\vcweb) (D:\Program Files\Go\src\cmd\go\internal\vcweb) cmd/go/internal/vcweb/vcstest: ambiguous import: found package cmd/go/internal/vcweb/vcstest in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\vcweb\vcstest) (D:\Program Files\Go\src\cmd\go\internal\vcweb\vcstest) cmd/go/internal/version: ambiguous import: found package cmd/go/internal/version in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\version) (D:\Program Files\Go\src\cmd\go\internal\version) cmd/go/internal/vet: ambiguous import: found package cmd/go/internal/vet in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\vet) (D:\Program Files\Go\src\cmd\go\internal\vet) cmd/go/internal/web: ambiguous import: found package cmd/go/internal/web in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\web) (D:\Program Files\Go\src\cmd\go\internal\web) cmd/go/internal/work: ambiguous import: found package cmd/go/internal/work in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\work) (D:\Program Files\Go\src\cmd\go\internal\work) cmd/go/internal/workcmd: ambiguous import: found package cmd/go/internal/workcmd in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\go\internal\workcmd) (D:\Program Files\Go\src\cmd\go\internal\workcmd) cmd/gofmt: ambiguous import: found package cmd/gofmt in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\gofmt) (D:\Program Files\Go\src\cmd\gofmt) cmd/internal/archive: ambiguous import: found package cmd/internal/archive in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\archive) (D:\Program Files\Go\src\cmd\internal\archive) cmd/internal/bio: ambiguous import: found package cmd/internal/bio in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\bio) (D:\Program Files\Go\src\cmd\internal\bio) cmd/internal/browser: ambiguous import: found package cmd/internal/browser in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\browser) (D:\Program Files\Go\src\cmd\internal\browser) cmd/internal/buildid: ambiguous import: found package cmd/internal/buildid in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\buildid) (D:\Program Files\Go\src\cmd\internal\buildid) cmd/internal/codesign: ambiguous import: found package cmd/internal/codesign in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\codesign) (D:\Program Files\Go\src\cmd\internal\codesign) cmd/internal/cov: ambiguous import: found package cmd/internal/cov in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\cov) (D:\Program Files\Go\src\cmd\internal\cov) cmd/internal/dwarf: ambiguous import: found package cmd/internal/dwarf in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\dwarf) (D:\Program Files\Go\src\cmd\internal\dwarf) cmd/internal/edit: ambiguous import: found package cmd/internal/edit in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\edit) (D:\Program Files\Go\src\cmd\internal\edit) cmd/internal/gcprog: ambiguous import: found package cmd/internal/gcprog in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\gcprog) (D:\Program Files\Go\src\cmd\internal\gcprog) cmd/internal/goobj: ambiguous import: found package cmd/internal/goobj in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\goobj) (D:\Program Files\Go\src\cmd\internal\goobj) cmd/internal/moddeps: ambiguous import: found package cmd/internal/moddeps in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\moddeps) (D:\Program Files\Go\src\cmd\internal\moddeps) cmd/internal/notsha256: ambiguous import: found package cmd/internal/notsha256 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\notsha256) (D:\Program Files\Go\src\cmd\internal\notsha256) cmd/internal/obj: ambiguous import: found package cmd/internal/obj in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\obj) (D:\Program Files\Go\src\cmd\internal\obj) cmd/internal/obj/arm: ambiguous import: found package cmd/internal/obj/arm in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\obj\arm) (D:\Program Files\Go\src\cmd\internal\obj\arm) cmd/internal/obj/arm64: ambiguous import: found package cmd/internal/obj/arm64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\obj\arm64) (D:\Program Files\Go\src\cmd\internal\obj\arm64) cmd/internal/obj/loong64: ambiguous import: found package cmd/internal/obj/loong64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\obj\loong64) (D:\Program Files\Go\src\cmd\internal\obj\loong64) cmd/internal/obj/mips: ambiguous import: found package cmd/internal/obj/mips in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\obj\mips) (D:\Program Files\Go\src\cmd\internal\obj\mips) cmd/internal/obj/ppc64: ambiguous import: found package cmd/internal/obj/ppc64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\obj\ppc64) (D:\Program Files\Go\src\cmd\internal\obj\ppc64) cmd/internal/obj/riscv: ambiguous import: found package cmd/internal/obj/riscv in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\obj\riscv) (D:\Program Files\Go\src\cmd\internal\obj\riscv) cmd/internal/obj/s390x: ambiguous import: found package cmd/internal/obj/s390x in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\obj\s390x) (D:\Program Files\Go\src\cmd\internal\obj\s390x) cmd/internal/obj/wasm: ambiguous import: found package cmd/internal/obj/wasm in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\obj\wasm) (D:\Program Files\Go\src\cmd\internal\obj\wasm) cmd/internal/obj/x86: ambiguous import: found package cmd/internal/obj/x86 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\obj\x86) (D:\Program Files\Go\src\cmd\internal\obj\x86) cmd/internal/objabi: ambiguous import: found package cmd/internal/objabi in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\objabi) (D:\Program Files\Go\src\cmd\internal\objabi) cmd/internal/objfile: ambiguous import: found package cmd/internal/objfile in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\objfile) (D:\Program Files\Go\src\cmd\internal\objfile) cmd/internal/osinfo: ambiguous import: found package cmd/internal/osinfo in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\osinfo) (D:\Program Files\Go\src\cmd\internal\osinfo) cmd/internal/pkgpath: ambiguous import: found package cmd/internal/pkgpath in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\pkgpath) (D:\Program Files\Go\src\cmd\internal\pkgpath) cmd/internal/pkgpattern: ambiguous import: found package cmd/internal/pkgpattern in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\pkgpattern) (D:\Program Files\Go\src\cmd\internal\pkgpattern) cmd/internal/quoted: ambiguous import: found package cmd/internal/quoted in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\quoted) (D:\Program Files\Go\src\cmd\internal\quoted) cmd/internal/src: ambiguous import: found package cmd/internal/src in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\src) (D:\Program Files\Go\src\cmd\internal\src) cmd/internal/sys: ambiguous import: found package cmd/internal/sys in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\sys) (D:\Program Files\Go\src\cmd\internal\sys) cmd/internal/test2json: ambiguous import: found package cmd/internal/test2json in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\test2json) (D:\Program Files\Go\src\cmd\internal\test2json) cmd/internal/traceviewer: ambiguous import: found package cmd/internal/traceviewer in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\internal\traceviewer) (D:\Program Files\Go\src\cmd\internal\traceviewer) cmd/link: ambiguous import: found package cmd/link in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link) (D:\Program Files\Go\src\cmd\link) cmd/link/internal/amd64: ambiguous import: found package cmd/link/internal/amd64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\amd64) (D:\Program Files\Go\src\cmd\link\internal\amd64) cmd/link/internal/arm: ambiguous import: found package cmd/link/internal/arm in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\arm) (D:\Program Files\Go\src\cmd\link\internal\arm) cmd/link/internal/arm64: ambiguous import: found package cmd/link/internal/arm64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\arm64) (D:\Program Files\Go\src\cmd\link\internal\arm64) cmd/link/internal/benchmark: ambiguous import: found package cmd/link/internal/benchmark in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\benchmark) (D:\Program Files\Go\src\cmd\link\internal\benchmark) cmd/link/internal/dwtest: ambiguous import: found package cmd/link/internal/dwtest in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\dwtest) (D:\Program Files\Go\src\cmd\link\internal\dwtest) cmd/link/internal/ld: ambiguous import: found package cmd/link/internal/ld in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\ld) (D:\Program Files\Go\src\cmd\link\internal\ld) cmd/link/internal/loadelf: ambiguous import: found package cmd/link/internal/loadelf in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\loadelf) (D:\Program Files\Go\src\cmd\link\internal\loadelf) cmd/link/internal/loader: ambiguous import: found package cmd/link/internal/loader in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\loader) (D:\Program Files\Go\src\cmd\link\internal\loader) cmd/link/internal/loadmacho: ambiguous import: found package cmd/link/internal/loadmacho in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\loadmacho) (D:\Program Files\Go\src\cmd\link\internal\loadmacho) cmd/link/internal/loadpe: ambiguous import: found package cmd/link/internal/loadpe in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\loadpe) (D:\Program Files\Go\src\cmd\link\internal\loadpe) cmd/link/internal/loadxcoff: ambiguous import: found package cmd/link/internal/loadxcoff in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\loadxcoff) (D:\Program Files\Go\src\cmd\link\internal\loadxcoff) cmd/link/internal/loong64: ambiguous import: found package cmd/link/internal/loong64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\loong64) (D:\Program Files\Go\src\cmd\link\internal\loong64) cmd/link/internal/mips: ambiguous import: found package cmd/link/internal/mips in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\mips) (D:\Program Files\Go\src\cmd\link\internal\mips) cmd/link/internal/mips64: ambiguous import: found package cmd/link/internal/mips64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\mips64) (D:\Program Files\Go\src\cmd\link\internal\mips64) cmd/link/internal/ppc64: ambiguous import: found package cmd/link/internal/ppc64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\ppc64) (D:\Program Files\Go\src\cmd\link\internal\ppc64) cmd/link/internal/riscv64: ambiguous import: found package cmd/link/internal/riscv64 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\riscv64) (D:\Program Files\Go\src\cmd\link\internal\riscv64) cmd/link/internal/s390x: ambiguous import: found package cmd/link/internal/s390x in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\s390x) (D:\Program Files\Go\src\cmd\link\internal\s390x) cmd/link/internal/sym: ambiguous import: found package cmd/link/internal/sym in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\sym) (D:\Program Files\Go\src\cmd\link\internal\sym) cmd/link/internal/wasm: ambiguous import: found package cmd/link/internal/wasm in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\wasm) (D:\Program Files\Go\src\cmd\link\internal\wasm) cmd/link/internal/x86: ambiguous import: found package cmd/link/internal/x86 in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\link\internal\x86) (D:\Program Files\Go\src\cmd\link\internal\x86) cmd/nm: ambiguous import: found package cmd/nm in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\nm) (D:\Program Files\Go\src\cmd\nm) cmd/objdump: ambiguous import: found package cmd/objdump in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\objdump) (D:\Program Files\Go\src\cmd\objdump) cmd/pack: ambiguous import: found package cmd/pack in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\pack) (D:\Program Files\Go\src\cmd\pack) cmd/pprof: ambiguous import: found package cmd/pprof in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\pprof) (D:\Program Files\Go\src\cmd\pprof) cmd/test2json: ambiguous import: found package cmd/test2json in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\test2json) (D:\Program Files\Go\src\cmd\test2json) cmd/trace: ambiguous import: found package cmd/trace in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\trace) (D:\Program Files\Go\src\cmd\trace) cmd/vet: ambiguous import: found package cmd/vet in multiple modules: cmd (J:\Go\src\github.com\golang\go\src\cmd\vet) (D:\Program Files\Go\src\cmd\vet)



### What did you expect to see?
I expected to see a usable source code.

### What did you see instead?
I saw a lot of errors.
Also my IDE for Go language shows a lot of errors: `Use of the internal package is not allowed`.
ianlancetaylor commented 1 year ago

If you want to do this, do not set GOROOT in the environment, and make sure that go env GOROOT matches the directory in which you run go mod tidy. Closing because I think this is a mismatch between the go command that you are running and the directory in which you are running it. Please comment if you disagree.

vault-thirteen commented 1 year ago

If you want to do this, do not set GOROOT in the environment,

The GOROOT environment variable is not set in my system.

J:\Go\src\test\go-go1.20.3>ECHO %GOROOT% %GOROOT%

As you see, it does not exist in the shell.

make sure that go env GOROOT matches the directory in which you run

How should I do it when I must not set the GOROOT ?

ianlancetaylor commented 1 year ago

go env GOROOT is a command that you can run.

The issue tracker is not the place for this kind of discussion. Please see https://go.dev/wiki/Questions. You will get better and faster answers on a forum. Thanks.

vault-thirteen commented 1 year ago

The issue tracker is not the place for this kind of discussion. Please see https://go.dev/wiki/Questions. You will get better and faster answers on a forum. Thanks.

Your source code shows a hundred of errors and you are telling me to go to some other place to discuss this thing ? Thank you for your great support. Good bye.

vault-thirteen commented 1 year ago

If someone else encounters such a thing, here is the way I solved it.

J:\Go\src\test\go-go1.20.3\src>SET GOROOT=J:\Go\src\test\go-go1.20.3\src

J:\Go\src\test\go-go1.20.3\src>ECHO %GOROOT%
J:\Go\src\test\go-go1.20.3\src

J:\Go\src\test\go-go1.20.3\src>cd cmd

J:\Go\src\test\go-go1.20.3\src\cmd>go mod tidy
go: downloading golang.org/x/tools v0.3.1-0.20230118190848-070db2996ebe
go: downloading golang.org/x/mod v0.7.0
go: downloading golang.org/x/term v0.2.0
go: downloading golang.org/x/sync v0.1.0
go: downloading golang.org/x/arch v0.1.1-0.20221116201807-1bb480fc256a
go: downloading golang.org/x/sys v0.3.0
go: downloading github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26
go: downloading github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2

J:\Go\src\test\go-go1.20.3\src\cmd>

To solve this thing I had to change the GOROOT environment variable.

So the do not set GOROOT in the environment is not actually working in my case because I had to set the GOROOT in my environment. So, I can not understand anything.

ianlancetaylor commented 1 year ago

My point is that the issue tracker is not a support channel. I am encouraging you to use an actual support channel. Thanks.

vault-thirteen commented 1 year ago

Well, I understand your position. Your corportate rules forbid you to be a real human, to speak what you want to speak. But, in the end, what are we living on this planet for ? I hope, I saved someone hours of searching, because I was not able to find it in Google's search for some reason. This is strange, but it is what it is. Maybe, search algorithms are tweaked in some way or another, I do not know. Please do not delete my comments because I am sure that someone else will have the same problem and will come here again and again and they will follow the same way I did.

Empty spaces, what are we living for ? Abandoned places, I guess we know the score, on and on Does anybody know what we are looking for ?

Brian May / Freddie Mercury / John Deacon / Roger Taylor

OK. I will try not to ask questions here. Have a nice day.

ianlancetaylor commented 1 year ago

There are no relevant corporate rules here. I can say what I like. I am trying to help you by encouraging to ask your questions in places where you will get faster and more accurate answers. Again, see https://go.dev/wiki/Questions. We wrote that page to help people.