Skip to content

fix: tag create --all iterates all modules with per-module prefix#251

Merged
indaco merged 3 commits intomainfrom
fix/tag-create-all-modules
Apr 2, 2026
Merged

fix: tag create --all iterates all modules with per-module prefix#251
indaco merged 3 commits intomainfrom
fix/tag-create-all-modules

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Apr 2, 2026

Description

sley tag create --all previously only processed the first module (modules[0]) instead of iterating all discovered modules. This PR fixes that by adding a createTagsForAllModules function that:

  • Iterates all modules and creates a tag for each one
  • Resolves per-module tag prefix via config merge (LoadConfigFromDir + MergePluginConfig)
  • Skips duplicate tags with an info message instead of returning a fatal error
  • Continues on individual module failure and returns a summary error

Related Issue

Follow-up to #240 / #241 (module-path tag prefix)

Notes for Reviewers

  • None

indaco added 3 commits April 2, 2026 15:08
… resolution

Previously tag create --all only processed the first module (modules[0]).
Now it iterates all discovered modules, resolves per-module tag prefix via
config merge, skips duplicate tags with info message, and continues on
individual module failure with a summary error.
Add TestCreateTagsForAllModules with 4 subtests (all succeed, missing
version file, duplicate tag skipped, creation failure continues) and
TestResolveModuleConfig with 2 subtests.
The test expected single-module output (Using version from module) but
now --all iterates all modules. Updated assertions to match new behavior.
@indaco indaco merged commit 46faa06 into main Apr 2, 2026
7 checks passed
@indaco indaco deleted the fix/tag-create-all-modules branch April 2, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant