aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-11-09 19:15:22 +0900
committerOphestra <cat@gensokyo.uk>2026-11-09 19:15:22 +0900
commit558c16bfc325c2785880cbac48c536ef5336aab4 (patch)
tree80b9324f2ca07aa8be0a5ab52f36dec86b0bf146
parentcabbf1d14b041cfcaa20f1ed7cff4012190016b6 (diff)
internal/rosa: skip vim swap files
These change a lot while something is being worked on and is never ever used by the build process. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/rosa/state.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go
index e0537b6c..83c904ec 100644
--- a/internal/rosa/state.go
+++ b/internal/rosa/state.go
@@ -1470,6 +1470,10 @@ func (s *S) SetSource(fsys fs.FS) error {
return fs.SkipDir
}
+ if name := d.Name(); strings.HasSuffix(name, ".swp") && name[0] == '.' {
+ return nil
+ }
+
var fi fs.FileInfo
if fi, err = d.Info(); err != nil {
return err