Skip to content

fix: suppress version mismatch warnings in independent versioning mode#252

Merged
indaco merged 4 commits intomainfrom
fix/discover-independent-versioning-warnings
Apr 2, 2026
Merged

fix: suppress version mismatch warnings in independent versioning mode#252
indaco merged 4 commits intomainfrom
fix/discover-independent-versioning-warnings

Conversation

@indaco
Copy link
Copy Markdown
Owner

@indaco indaco commented Apr 2, 2026

Description

When a workspace uses independent versioning (each module at its own version), sley discover incorrectly reported version differences as warnings. This PR adds a workspace.versioning config field and adjusts the discover command output:

  • Adds versioning field to WorkspaceConfig (valid values: independent, coordinated, or empty/default)
  • Adds IsIndependentVersioning() and VersioningMode() helper methods
  • Adds config validation rejecting invalid versioning values
  • In independent mode: mismatches shown as info summaries ("version differences are expected")
  • In coordinated mode (default): existing warning behavior preserved
  • JSON output gains a versioning_mode field for machine consumers
  • All three output formatters (text, table, JSON) updated

Related Issue

  • None

Notes for Reviewers

  • Backward compatible - existing configs without versioning field default to coordinated (unchanged behavior)

indaco added 4 commits April 2, 2026 14:34
Add workspace.versioning field (independent|coordinated) to WorkspaceConfig.
When set to independent, discover command shows mismatches as info summaries
instead of warnings. Updates text, table, and JSON output formatters.
JSON output gains a versioning_mode field for machine consumers.
Add TestWorkspaceConfig_IsIndependentVersioning, TestWorkspaceConfig_VersioningMode,
TestLoadConfig_InvalidVersioning for config validation. Add versioning mode tests
for JSON, text, table formatters and workflow mismatch handling.
@indaco indaco merged commit 63eb64e into main Apr 2, 2026
7 checks passed
@indaco indaco deleted the fix/discover-independent-versioning-warnings branch April 2, 2026 13:58
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