# go: module lookup disabled by GOPROXY=off

- **ID:** `go/module-lookup-directory-error`
- **Domain:** go
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The GOPROXY environment variable is set to 'off', disabling all network access for module downloads, but the module is not in the local cache.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Set GOPROXY=https://proxy.golang.org,direct in your environment or go env -w GOPROXY=https://proxy.golang.org,direct
   ```
2. **** (85% success)
   ```
   If offline, use GOFLAGS=-mod=vendor and ensure all dependencies are vendored with go mod vendor beforehand.
   ```

## Dead Ends

- **** — The environment variable may be overridden by a .env file or Makefile; the shell change may not persist. (40% fail)
- **** — If the module is not already vendored, go mod vendor will still attempt to download it and fail. (70% fail)
