mach-composer / mach-composer-cli

MACH composer is an orchestration tool for modern MACH ecosystems, powered by Terraform infrastructure-as-code underneath.
https://docs.machcomposer.io
MIT License
48 stars 10 forks source link

Dry run option not doing anything with register-component-version command #436

Closed tleguijt closed 6 days ago

tleguijt commented 2 weeks ago

Problem mach-composer cloud register-component-version test-component --organization <org> --project <project> 1234 --dry-run actually performs the command and applies it in MACH cloud, and doesn't do a dry run.

Versions tested v2.19.0 v2.17.1

demeyerthom commented 2 weeks ago

Double-checked the code, and looks like dry-run is only used when we run it in auto-mode (--auto). Auto adds the commits to the version. When it is not in auto-mode it will only create a new component version with version and branch. I will update that to log the same line we do in --auto (but without the commits it found)