summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-05-17 17:44:43 +0300
committerPaul Buetow <paul@buetow.org>2025-05-17 17:44:43 +0300
commitc6a8599f5c7bc92da8c010beb8d5f3f012080063 (patch)
tree1fa4970cc3fbae297f878c5253866210a2bb03d6 /internal
parent8b9a8ab940541b9c63e8f9ce1a66555619f17412 (diff)
special case Noop platform
Diffstat (limited to 'internal')
-rw-r--r--internal/queue/queue.go4
-rw-r--r--internal/tags/share.go4
2 files changed, 6 insertions, 2 deletions
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))
}
}