Skip to content

feat(go): exclude node_modules and add fmt overrides - #31

Merged
retr0h merged 1 commit into
mainfrom
feat/fmt-excludes
Apr 10, 2026
Merged

feat(go): exclude node_modules and add fmt overrides#31
retr0h merged 1 commit into
mainfrom
feat/fmt-excludes

Conversation

@retr0h

@retr0h retr0h commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add ! -path '*/node_modules/*' to all find commands in fmt and fmt-check recipes
  • Add JUST_GO_FMT_EXCLUDES env var for project-specific extra exclusions
  • Update README with the new env var

npm packages like flatted ship .go files that break formatting
checks in monorepos with ui/ directories (e.g., osapi's embedded
React UI). node_modules should always be excluded alongside
.worktrees and .claude.

The JUST_GO_FMT_EXCLUDES variable lets consuming projects add
extra find exclusions without forking the shared justfile.

Test plan

  • Verified find commands exclude node_modules
  • Run just go::fmt-check in osapi with ui/node_modules present

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

Thank you for contributing to this project! 😊🕹️

Add ! -path '*/node_modules/*' to all find commands in fmt and
fmt-check recipes. npm packages like flatted ship .go files that
break formatting checks in monorepos with ui/ directories.

Add JUST_GO_FMT_EXCLUDES env var so consuming projects can pass
extra find exclusions without forking the shared justfile.

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@retr0h
retr0h force-pushed the feat/fmt-excludes branch from b9c8da8 to 7d69049 Compare April 10, 2026 05:43
@retr0h
retr0h merged commit 7398de8 into main Apr 10, 2026
4 checks passed
@retr0h
retr0h deleted the feat/fmt-excludes branch April 10, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant