# go: updates to go.mod needed; to update it:
	go mod tidy

- **ID:** `go/updates-to-go-mod-needed`
- **Domain:** go
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The build is running with -mod=readonly (default in modules) and go.mod is out of sync with imports or the toolchain directive.

## Version Compatibility

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

## Workarounds

1. **** (97% success)
   ```
   go mod tidy
go build ./...
   ```
2. **** (90% success)
   ```
   go build -mod=mod ./...
   ```

## Dead Ends

- **** — invalid go.mod syntax and still out of sync (90% fail)
- **** — it is already the default; does not resolve the mismatch (100% fail)
- **** — loses dependency pins and can change versions unexpectedly (70% fail)
