# go: go.mod requires go >= 1.22.0 (running go 1.21.5; GOTOOLCHAIN=local)

- **ID:** `go/toolchain-not-available`
- **Domain:** go
- **Category:** toolchain_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

go.mod declares a newer Go version than the installed toolchain, and GOTOOLCHAIN=local prevents automatic toolchain download.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.21+ | active | — | — |
| 1.22+ | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   GOTOOLCHAIN=auto go build ./...
   ```
2. **** (90% success)
   ```
   go install golang.org/dl/go1.22.0@latest
~/go/bin/go1.22.0 download
~/go/bin/go1.22.0 build ./...
   ```

## Dead Ends

- **** — may use language features unavailable in 1.21, causing compile errors (60% fail)
- **** — off is not a valid value; use local (100% fail)
- **** — the build does not proceed (100% fail)
