# no required module provides package github.com/foo/bar; to add it:
	go get github.com/foo/bar

- **ID:** `go/cannot-find-module-providing-package`
- **Domain:** go
- **Category:** module_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The import is used in source but go.mod has no require entry for the providing module, and -mod=readonly prevents auto-adding.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   go get github.com/foo/bar@latest
go mod tidy
   ```
2. **** (90% success)
   ```
   go build -mod=mod ./...
   ```

## Dead Ends

- **** — wrong version causes 'unknown revision' or checksum errors (70% fail)
- **** — build fails with 'vendor directory does not exist' (90% fail)
- **** — loses all existing dependency pins and may break transitive deps (60% fail)
