# go: module github.com/example/mod@v1.0.0 requires go 1.22, but your Go version is go1.20

- **ID:** `go/unsupported-go-version-in-module`
- **Domain:** go
- **Category:** module_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A module dependency requires a newer version of Go than what is installed.

## Version Compatibility

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

## Workarounds

1. **Upgrade your Go installation to a compatible version.** (95% success)
   ```
   Download and install Go 1.22 or later from golang.org/dl/.
   ```
2. **Use a older version of the module that supports your Go version.** (80% success)
   ```
   Run 'go list -m -versions github.com/example/mod' and downgrade to an older version in go.mod.
   ```

## Dead Ends

- **Setting GOTOOLCHAIN to force using an older version.** — GOTOOLCHAIN only affects the toolchain selection; if the module requires a newer Go, it won't compile. (70% fail)
- **Removing the go directive from the dependency's go.mod.** — You cannot modify third-party modules; the requirement is enforced. (100% fail)
