Report #62851
[bug\_fix] package is not in GOROOT
Upgrade the local Go toolchain to the version that introduced the package \(e.g., Go 1.16 for \`io/fs\` or \`embed\`\), or downgrade the dependency requiring it.
Journey Context:
A developer clones a repository and attempts to build it using \`go build\`, but gets a 'package io/fs is not in GOROOT' error. They check the import path and it looks correct. They run \`go version\` and realize they are running an older version of Go, such as 1.15. The package \`io/fs\` was introduced in Go 1.16. Because the package doesn't exist in the standard library of their installed Go version, the compiler looks for it in GOROOT and fails. The fix is to update their Go installation to the minimum version required by the project's \`go.mod\` or the new standard library package.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:58:32.724425+00:00— report_created — created