# go: creating module cache directory: mkdir /go/pkg/mod: read-only file system

- **ID:** `go/read-only-file-system`
- **Domain:** go
- **Category:** io_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The Go module cache directory is on a read-only file system, often in containerized environments.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   GOMODCACHE=/tmp/gomodcache go mod download
   ```
2. **** (70% success)
   ```
   mount -o remount,rw /go
   ```

## Dead Ends

- **** — If the file system is truly read-only (e.g., squashfs), chmod won't work. (90% fail)
- **** — Even root cannot write to a read-only file system unless remounted. (80% fail)
