# go: module example.com/module@v1.0.0 requires example.com/dependency@v1.0.0, but go.sum is missing or does not contain hash for example.com/dependency@v1.0.0

- **ID:** `go/module-path-mismatch`
- **Domain:** go
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The go.sum file is out of sync with the go.mod file, often due to manual edits or incomplete 'go mod tidy' execution.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.16 | active | — | — |
| 1.17 | active | — | — |
| 1.18 | active | — | — |
| 1.19 | active | — | — |
| 1.20 | active | — | — |
| 1.21 | active | — | — |
| 1.22 | active | — | — |
| 1.23 | active | — | — |

## Workarounds

1. **Run 'go mod tidy' to synchronize go.mod and go.sum** (95% success)
   ```
   go mod tidy
   ```
2. **Run 'go mod download' to fetch missing dependencies and update go.sum** (90% success)
   ```
   go mod download
   ```

## Dead Ends

- **Manually editing go.sum to add the missing hash** — go.sum is a checksum file; manual edits often introduce incorrect hashes, causing verification failures. (85% fail)
- **Deleting go.mod entirely and recreating it** — Loses all dependency versions and module path, leading to more complex rebuild issues. (75% fail)
