Error handling
- Check init skeleton writes and closure errors together; reject unreadable package
clauses and invalid fallback package names instead of silently ignoring failures.
- Preserve temporary-output write, close and cleanup errors with errors.Join.
- Check fixture writes, reads and cleanup errors in tests.
- Add errcheck with blank-assignment checks to local, CI and release validation.
- Wrap filesystem, package-loading and rendering failures with operation/path
context and %w, preserving errors.Is/errors.As through joined cleanup failures.
- Watch mode exits with a contextualized error when filesystem inspection fails,
rather than treating a partial snapshot as a valid change. Normal deletions
during polling remain supported; generation errors still keep watch running.
- CLI stdout/stderr and watch callback failures are checked and wrapped; failed
output delivery stops watch instead of being silently retried.
- Remove default lint exclusions and repeated-issue caps, retaining only targeted
in-memory writer exemptions. Enable wrapcheck and errorlint alongside errcheck.
- Examples check their console writes; legacy cleanup no longer performs an
unchecked print. The showcase's visible output is unchanged.
Upgrade notes
- Requires Go 1.27.1+; public declaration signatures and JSON graph schema
are unchanged.
- No code change is required to upgrade. Error messages are more specific and
now carry operation/path context; do not match on their exact text.
- In watch mode, an unwritable stdout/stderr now stops the watcher with an
error instead of being silently retried. Generation failures still keep the
watcher running.
- Local
make check runs errcheck, wrapcheck and errorlint without default
exclusions; update custom lint configuration accordingly.
go install github.com/Medzoner/whyor/cmd/whyor@v0.12.0
go get github.com/Medzoner/whyor@v0.12.0
whyor gen ./...
go test ./...
Documentation
- Runnable showcase application and a five-screen terminal demo with a recording
storyboard and an SVG preview of verified output.
- Short Wire migration diff and a factual author-maintained application case study.
- Contribution guide and roadmap separating verified features from v1.0 readiness work.
- Expanded package documentation, bug/proposal issue forms and a PR template.
- Editable social-preview artwork and a repository metadata setup guide. GitHub
About/topics/image settings require a separate administrative action.