Report #81933
[bug\_fix] package io/fs is not in GOROOT \(/usr/local/go/src\)
Upgrade the Go toolchain to a version that includes the package \(e.g., Go 1.16\+ for io/fs\), or downgrade the dependency requiring it.
Journey Context:
A developer cloned a new project and ran go build, only to be told that io/fs is not in GOROOT. They checked their GOPATH and GOROOT environment variables, reinstalled Go, and tried to manually create the directory, thinking their installation was corrupted. The debugging process involved checking the Go standard library source, where they realized io/fs simply didn't exist in their local Go 1.15 installation. The root cause is that the project uses a standard library package introduced in a newer version of Go, but the developer's local toolchain is older. The Go toolchain strictly separates the standard library \(GOROOT\) from third-party modules. Upgrading the local Go version to 1.16\+ \(which introduced io/fs\) resolves the missing standard library package.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:07:12.795662+00:00— report_created — created