🐛 Bug fixes
grove dev — build command now targets the correct entrypoint
The default build_cmd was pointing to . (the module root) instead of the actual application entrypoint. It now correctly targets ./cmd/api/:
Before: go build -o .grove/tmp/app .
After: go build -o .grove/tmp/app ./cmd/api/
Projects that follow the standard Grove layout (cmd/api/main.go) will now compile correctly out of the box with zero configuration.
grove dev — test files no longer trigger rebuilds
The watcher was incorrectly reacting to changes in internal/tests/ and to _spec.go files, causing unnecessary rebuilds (and potentially circular behaviour) while editing tests.
Two independent guards were added:
- Directory exclusion —
"tests"is now part of the defaultexcludelist. The watcher skips the entireinternal/tests/directory and never registers it with fsnotify. - Filename suffix filter —
shouldHandlenow rejects any file ending in_spec.goas a second line of defence, regardless of its location on disk.
📝 Documentation
build_cmddefault corrected to./cmd/api/ingrove dev --help,README.md, and the documentation site."tests"added to theexcludeexample in allgrove.tomlsnippets.
Full Changelog: v1.2.0...v1.2.1