# go: module example.com/module: directory "/home/user/go/pkg/mod/example.com/module@v1.0.0" not found

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

## Root Cause

The module cache is missing the required version directory, possibly due to a corrupted cache or incomplete download.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.11 | active | — | — |
| 1.12 | active | — | — |
| 1.13 | active | — | — |
| 1.14 | active | — | — |
| 1.15 | active | — | — |
| 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 clean -modcache' and then 'go mod download'** (95% success)
   ```
   go clean -modcache && go mod download
   ```
2. **Run 'go mod tidy' to re-download and verify all dependencies** (90% success)
   ```
   go mod tidy
   ```

## Dead Ends

- **Manually creating the directory and copying files** — The module cache is managed by Go; manual creation leads to checksum mismatches and broken references. (90% fail)
- **Setting GOMODCACHE to a different path without clearing old cache** — The new path may not have the required module; the error persists if the module is not downloaded there. (60% fail)
