From c6a8599f5c7bc92da8c010beb8d5f3f012080063 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 17 May 2025 17:44:43 +0300 Subject: special case Noop platform --- internal/queue/queue.go | 4 ++-- internal/tags/share.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/queue/queue.go b/internal/queue/queue.go index 397c438..4a1b266 100644 --- a/internal/queue/queue.go +++ b/internal/queue/queue.go @@ -23,7 +23,7 @@ func Run(args config.Args) error { if err := queueEntries(args); err != nil { return err } - if err := queuePlatforms(args); err != nil { + if err := queueEntriesToPlatforms(args); err != nil { return err } return nil @@ -73,7 +73,7 @@ func queueEntries(args config.Args) error { // Queue all ./db/queued/*.txt.STAMP.queued into ./db/platforms/PLATFORM/*.txt.STAMP.queued // for each PLATFORM -func queuePlatforms(args config.Args) error { +func queueEntriesToPlatforms(args config.Args) error { dbDir := filepath.Join(args.GosDir, "db") ch, err := oi.ReadDirCh(dbDir, find(dbDir, ".queued")) if err != nil { diff --git a/internal/tags/share.go b/internal/tags/share.go index e58661a..a3d48e5 100644 --- a/internal/tags/share.go +++ b/internal/tags/share.go @@ -29,11 +29,15 @@ func NewShare(args config.Args, tags map[string]struct{}) (Share, error) { } } + // If there is no share tag, by default include all platforms but "Noop" if len(s.Includes) == 0 { for platformStr := range args.Platforms { if slices.Contains(s.Excludes, strings.ToLower(platformStr)) { continue } + if platformStr == "Noop" { + continue + } s.Includes = append(s.Includes, strings.ToLower(platformStr)) } } -- cgit v1.2.3