Build runs `go build -o out pkg` from the given working directory. Returns stderr output on failure so the caller can display it verbatim.
| 10 | // Build runs `go build -o out pkg` from the given working directory. |
| 11 | // Returns stderr output on failure so the caller can display it verbatim. |
| 12 | type BuildError struct { |
| 13 | Stderr string |
| 14 | Err error |
| 15 | } |
| 16 | |
| 17 | func (e *BuildError) Error() string { |
| 18 | if e.Stderr == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected