# package net/http is not in GOROOT (/usr/local/go/src/net/http)

- **ID:** `go/package-not-in-goroot`
- **Domain:** go
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The Go standard library package is missing from the GOROOT directory, possibly due to a corrupted installation or wrong GOROOT.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.20 | active | — | — |
| 1.21 | active | — | — |
| 1.22 | active | — | — |

## Workarounds

1. **Reinstall Go completely to restore missing standard library files.** (95% success)
   ```
   Download the official Go distribution from golang.org and reinstall.
   ```
2. **Check and set GOROOT correctly if using multiple Go versions.** (85% success)
   ```
   Run 'go env GOROOT' to see current value, then set 'export GOROOT=/usr/local/go' (or correct path) if misconfigured.
   ```

## Dead Ends

- **Setting GOROOT to a different Go installation.** — If the new GOROOT also lacks the package, the error persists. (60% fail)
- **Reinstalling only the missing package manually.** — Go standard library is monolithic; individual packages cannot be reinstalled separately. (100% fail)
