Skip to content

fix: per-module tag config loading and {module_path} template variable#242

Merged
indaco merged 6 commits intomainfrom
fix/module-path-tag-prefix
Apr 1, 2026
Merged

fix: per-module tag config loading and {module_path} template variable#242
indaco merged 6 commits intomainfrom
fix/module-path-tag-prefix

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Apr 1, 2026

Description

Fix sley tag --module to load and merge per-module .sley.yaml config, and add {module_path} template variable support in tag-manager.prefix for Go monorepo compatibility.

Both tag and bump flows are covered. The config validator bypasses the / char rejection for template prefixes and warns when {module_path} is used without workspace discovery enabled.

Related Issue

Notes for Reviewers

  • InterpolatePrefix lives in tagmanager/template.go (not tagcmd.go) so both tag and bump commands can import it.
  • os.Getwd() is used for relative path computation since resolveVersionPath returns absolute paths from workspace.Module.Path.

indaco added 6 commits April 1, 2026 16:21
Extract loadConfigFromPath helper from loadConfig to enable loading .sley.yaml from arbitrary directories. Add LoadConfigFromDir for per-module config loading and MergePluginConfig for merging module plugin configs over root.

Refs #240 #241
…Prefix

Add {module_path} to TemplatePlaceholders and ModulePath field to TemplateData.

Refs #241
…efix

Extract resolveModuleConfig helper that loads module .sley.yaml via LoadConfigFromDir, merges with root config, and returns relative module path.

Fixes #240
@indaco indaco merged commit 6e0bc7a into main Apr 1, 2026
4 checks passed
@indaco indaco deleted the fix/module-path-tag-prefix branch April 1, 2026 14:46
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.

Support {module_path} placeholder in tag-manager.prefix for Go monorepo tags tag --module does not pick up per-module .sley.yaml tag-manager config

1 participant