# go: inconsistent vendoring: vendor directory is missing, but -mod=vendor is set. Run 'go mod vendor'.

- **ID:** `go/vendor-directory-not-present`
- **Domain:** go
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The project is configured to use vendoring (via -mod=vendor or GOFLAGS), but the vendor directory doesn't exist.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   go mod vendor
   ```
2. **** (80% success)
   ```
   go build -mod=mod
   ```

## Dead Ends

- **** — Go expects specific files like modules.txt; empty dirs won't satisfy the build. (100% fail)
- **** — You may not control the build environment; the flag may be set in CI. (50% fail)
