# go: inconsistent vendoring in /path/to/project: vendor/modules.txt is out of date

- **ID:** `go/go-mod-tidy-inconsistent-vendoring`
- **Domain:** go
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The vendor directory's modules.txt does not match the requirements in go.mod, often due to adding/removing dependencies without running go mod vendor.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Run 'go mod vendor' to regenerate the vendor directory and modules.txt from go.mod.
   ```
2. **** (90% success)
   ```
   Run 'go mod tidy' to clean up go.mod, then 'go mod vendor' to sync.
   ```

## Dead Ends

- **** — The file is auto-generated; manual edits will be overwritten or cause further inconsistencies. (80% fail)
- **** — Without re-vendoring, builds will fail if modules are not in cache or network is unavailable. (60% fail)
