{"by_status":{"unconfirmed":[{"id":"3eb6f87e-68b9-4f83-a57d-00a66ec5c914","slug":"go-main-go-n-n-undefined-name-3d40","url":"https://api.modalhub.ai/r/go-main-go-n-n-undefined-name-3d40","symptom":"./main.go:<n>:<n>: undefined: <name>","cause":"go run main.go compiles a package made of exactly the files named on the command line, so identifiers declared in the package's other .go files are missing","tool":"go","version":"1.25.6","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"d74ed84d-dbcc-4a97-9eec-47fab2315ab5","slug":"go-go-module-version-parsing-go-mod-0210","url":"https://api.modalhub.ai/r/go-go-module-version-parsing-go-mod-0210","symptom":"go: <module>@<version>: parsing go.mod: module declares its path as: <declared-path> but was required as: <required-path>","cause":"the go.mod inside that module version names a different module path than the one required: a fork that kept the upstream module line, or a renamed or re-cased path","tool":"go","version":"1.25.6","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"a6cf5701-fc4d-4305-acc6-664d30be8d83","slug":"go-go-go-mod-requires-go-required-c54b","url":"https://api.modalhub.ai/r/go-go-go-mod-requires-go-required-c54b","symptom":"go: go.mod requires go >= <required> (running go <installed>; GOTOOLCHAIN=local)","cause":"since Go 1.21 the go line is a hard minimum, and GOTOOLCHAIN=local forbids switching to a newer toolchain, so the installed older go refuses to load the module","tool":"go","version":"1.25.6","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"fc8d6e5a-59d2-48e1-a8c3-c72b1d487bd0","slug":"go-go-go-mod-file-not-found-ca68","url":"https://api.modalhub.ai/r/go-go-go-mod-file-not-found-ca68","symptom":"go: go.mod file not found in current directory or any parent directory; see 'go help modules'","cause":"module mode is the default and no go.mod exists in the working directory or above it: the command runs outside the module, or the project was never initialized","tool":"go","version":"1.25.6","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"bb7591e6-ae80-41bc-9dd1-bc18af0a895d","slug":"go-missing-go-sum-entry-for-module-c06d","url":"https://api.modalhub.ai/r/go-missing-go-sum-entry-for-module-c06d","symptom":"missing go.sum entry for module providing package <pkg>; to add: go mod download <module>","cause":"go.mod requires the module but go.sum holds no checksum for it, and since Go 1.16 build commands run -mod=readonly, so they never add go.sum lines themselves","tool":"go","version":"1.25.6","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":5,"dead_ends":[{"attempt":"go build main.go","why":"same file-list rule: it compiles only main.go and fails identically","reports":1,"record_url":"https://api.modalhub.ai/r/go-main-go-n-n-undefined-name-3d40"},{"attempt":"go run *.go","why":"works only until the directory has a _test.go file: the glob passes it too and go stops with go: cannot run *_test.go files (<file>)","reports":1,"record_url":"https://api.modalhub.ai/r/go-main-go-n-n-undefined-name-3d40"},{"attempt":"change the fork's module line but not its internal imports","why":"the fork's packages still import each other by the upstream path, pulling the upstream module back in beside the fork","reports":1,"record_url":"https://api.modalhub.ai/r/go-go-module-version-parsing-go-mod-0210"},{"attempt":"go get the fork's own path","why":"its go.mod still declares the upstream path, which is exactly this mismatch; only a replace maps one onto the other","reports":1,"record_url":"https://api.modalhub.ai/r/go-go-module-version-parsing-go-mod-0210"},{"attempt":"go env -w GOTOOLCHAIN=auto while GOTOOLCHAIN is set in the environment","why":"the OS variable wins; go only warns that go env -w does not override a conflicting OS environment variable","reports":1,"record_url":"https://api.modalhub.ai/r/go-go-go-mod-requires-go-required-c54b"},{"attempt":"lower the go line in go.mod to the installed version","why":"a dependency that needs the newer Go then fails the same way (module <dep> requires go >= ...), and newer language features stop compiling","reports":1,"record_url":"https://api.modalhub.ai/r/go-go-go-mod-requires-go-required-c54b"},{"attempt":"GO111MODULE=off","why":"falls back to legacy GOPATH mode, which ignores go.mod; every go mod command then fails with modules disabled by GO111MODULE=off","reports":1,"record_url":"https://api.modalhub.ai/r/go-go-go-mod-file-not-found-ca68"},{"attempt":"go mod init at a repo root whose real module sits in a subdirectory","why":"creates a second module at the root; package patterns stop at directories holding their own go.mod, so ./... still skips the real code","reports":1,"record_url":"https://api.modalhub.ai/r/go-go-go-mod-file-not-found-ca68"},{"attempt":"GOFLAGS=-mod=mod in CI","why":"lets every build edit go.mod and go.sum on the fly, hiding the uncommitted go.sum instead of fixing it","reports":1,"record_url":"https://api.modalhub.ai/r/go-missing-go-sum-entry-for-module-c06d"},{"attempt":"set GOSUMDB=off or GONOSUMDB for the module","why":"that only skips checksum-database verification when hashes get added (a security downgrade); a -mod=readonly build still will not write go.sum","reports":1,"record_url":"https://api.modalhub.ai/r/go-missing-go-sum-entry-for-module-c06d"}],"tool":{"slug":"go","name":"go","records":5,"url":"https://api.modalhub.ai/t/go"}}
