github caiolandgraf/grove v1.2.1
v1.2.1 - 🌿 `grove dev` — built-in hot reload (no Air required) Latest

latest releases: v1.5.2, v1.5.1, v1.5.0...
6 days ago

🐛 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 default exclude list. The watcher skips the entire internal/tests/ directory and never registers it with fsnotify.
  • Filename suffix filtershouldHandle now rejects any file ending in _spec.go as a second line of defence, regardless of its location on disk.

📝 Documentation

  • build_cmd default corrected to ./cmd/api/ in grove dev --help, README.md, and the documentation site.
  • "tests" added to the exclude example in all grove.toml snippets.

Full Changelog: v1.2.0...v1.2.1

Don't miss a new grove release

NewReleases is sending notifications on new releases.