# go: cannot find module providing package github.com/foo/bar: module lookup disabled by GOPROXY=off

- **ID:** `go/go-mod-vendor-permission-error`
- **Domain:** go
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

When GOPROXY=off and the module is not in the vendor directory, the go command cannot resolve the package.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   Set GOPROXY to a valid proxy or direct, then run 'go mod download' or 'go mod vendor'.
   ```
2. **** (60% success)
   ```
   If offline, ensure the module is already in the module cache: 'go env GOMODCACHE' and copy from another machine.
   ```

## Dead Ends

- **** — GOPROXY=off overrides this flag; module downloads are still blocked. (90% fail)
- **** — This is not compatible with module mode and can cause import path mismatches. (70% fail)
