# go: inconsistent vendoring in /path/to/project: go.mod requires github.com/foo/bar v1.4.0 but vendor/modules.txt has v1.2.0

- **ID:** `go/module-graph-version-conflict`
- **Domain:** go
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Vendor directory is out of sync with go.mod after updating a dependency version but not re-running 'go mod vendor'.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.14 | active | — | — |
| 1.21 | active | — | — |
| 1.24 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   go mod vendor
   ```
2. **** (90% success)
   ```
   go mod tidy && go mod vendor
   ```

## Dead Ends

- **** — Vendor directory contains actual source code and checksums; manual edits cause more inconsistencies and build failures. (95% fail)
- **** — If the project is configured for vendoring (with -mod=vendor), removing it causes 'cannot find module' errors unless you switch to network mode. (80% fail)
