# go: module github.com/user/private-repo@v1.0.0: reading https://proxy.golang.org/github.com/user/private-repo/@v/v1.0.0.info: 404 Not Found

- **ID:** `go/module-not-found-in-go-path`
- **Domain:** go
- **Category:** module_error
- **Verification:** ai_generated
- **Fix Rate:** 85%

## Root Cause

Go proxy (proxy.golang.org) cannot find the module version, either because the module is private and not accessible via the default proxy, or the version tag does not exist in the repository.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| go1.17 | active | — | — |
| go1.18 | active | — | — |
| go1.19 | active | — | — |
| go1.20 | active | — | — |
| go1.21 | active | — | — |

## Workarounds

1. **Set GONOSUMCHECK and GONOSUMDB, then use `GONOSUMCHECK=* GONOSUMDB=* GOPROXY=direct go get github.com/user/private-repo@v1.0.0` to bypass the proxy entirely.** (85% success)
   ```
   Set GONOSUMCHECK and GONOSUMDB, then use `GONOSUMCHECK=* GONOSUMDB=* GOPROXY=direct go get github.com/user/private-repo@v1.0.0` to bypass the proxy entirely.
   ```
2. **If the repo is private, configure git with a personal access token: `git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"` then set `GOPRIVATE=github.com/user/private-repo`.** (90% success)
   ```
   If the repo is private, configure git with a personal access token: `git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"` then set `GOPRIVATE=github.com/user/private-repo`.
   ```

## Dead Ends

- **** — Tidy doesn't bypass proxy; it still queries the same proxy URL which returns 404. (90% fail)
- **** — The error is about module retrieval (404), not checksum verification. (50% fail)
