Skip to content

fix(version): output clean semver for CI compatibility#29

Merged
EndersonPro merged 2 commits intomainfrom
fix-version-output-for-ci
Apr 5, 2026
Merged

fix(version): output clean semver for CI compatibility#29
EndersonPro merged 2 commits intomainfrom
fix-version-output-for-ci

Conversation

@EndersonPro
Copy link
Copy Markdown
Owner

@EndersonPro EndersonPro commented Apr 5, 2026

Closes #28

Summary

  • Strip v/V prefix from version output so flutree --version returns only the raw semver (e.g. 0.15.0)
  • Fixes CI verify_macos_binary.sh which compares version output against the VERSION file

Changes

File Change
cmd/flutree/main.go Strip v/V prefix in runVersion() before printing

Test Plan

  • All 141 tests pass across 11 packages
  • Build succeeds without errors
  • flutree --version outputs clean semver: 0.15.0 (or dev)
  • CI verify_macos_binary.sh will now get 0.15.0 instead of the styled output

Strip v/V prefix from version output so flutree --version
returns only the raw semver (e.g. 0.15.0) for scripting and
CI verification pipelines.
@EndersonPro EndersonPro added the bug Something isn't working label Apr 5, 2026
Strip v/V prefix from version output so flutree --version
returns only the raw semver (e.g. 0.15.0 or dev) for scripting
and CI verification pipelines.

The styled output with emoji belongs in --help, not --version.
@EndersonPro EndersonPro force-pushed the fix-version-output-for-ci branch from 5355e6e to c07d2d9 Compare April 5, 2026 20:54
@EndersonPro EndersonPro merged commit 8162073 into main Apr 5, 2026
2 checks passed
@EndersonPro EndersonPro deleted the fix-version-output-for-ci branch April 5, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(version): clean semver output for CI compatibility

1 participant