# go: no buildable Go source files in /path/to/dir

- **ID:** `go/go-build-no-buildable-go-source`
- **Domain:** go
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The directory specified for go build contains no .go files, or all .go files have build constraints that exclude them on the current platform.

## Version Compatibility

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

## Workarounds

1. **** (80% success)
   ```
   Check for build tags: 'go build -tags=yourtag' if files have constraints.
   ```
2. **** (90% success)
   ```
   Ensure the directory contains at least one .go file with a package statement; if not, move files or adjust the build command.
   ```

## Dead Ends

- **** — If the package name does not match the directory or has no exports, it may still fail to build. (40% fail)
- **** — Renaming directories can break imports and module paths. (60% fail)
