aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-09 19:41:07 +0900
committerOphestra <cat@gensokyo.uk>2026-11-09 19:41:07 +0900
commit87dc1097553a562c585a8ae3982a911d1c4f51e1 (patch)
treef80041376144358a28fc949164d6f2633de95cf5 /internal
parent558c16bfc325c2785880cbac48c536ef5336aab4 (diff)
internal/rosa: drop more unused directories
These are not part of hakurei, and it is pointless to rebuild when they are changed. This change drops them from loaded source. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/state.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go
index 83c904ec..f8cffce7 100644
--- a/internal/rosa/state.go
+++ b/internal/rosa/state.go
@@ -1466,7 +1466,11 @@ func (s *S) SetSource(fsys fs.FS) error {
return err
}
- if d.IsDir() && d.Name() == ".git" {
+ if d.IsDir() && slices.Contains([]string{
+ ".git",
+ "internal/rosa",
+ "cmd/mbf",
+ }, path) {
return fs.SkipDir
}