# go: inconsistent vendoring in /path/to/module:
	github.com/foo/bar@v1.2.3: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

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

## Root Cause

The vendor/ directory is stale relative to go.mod/go.sum. Common after editing dependencies without re-running go mod vendor.

## Version Compatibility

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

## Workarounds

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

## Dead Ends

- **** — vendor contents still mismatch; next build fails differently (85% fail)
- **** — CI configured for vendored builds fails with missing vendor dir (70% fail)
- **** — ignores vendor but CI may still require vendoring (50% fail)
