Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to ignore height #697

Closed
adamralph opened this issue Mar 6, 2022 · 2 comments · Fixed by #693
Closed

Option to ignore height #697

adamralph opened this issue Mar 6, 2022 · 2 comments · Fixed by #693
Labels
enhancement New feature or request
Milestone

Comments

@adamralph
Copy link
Owner

adamralph commented Mar 6, 2022

Use case(s)

Preventing changes committed to a given project from affecting the versions of other projects when versioning multiple projects in a single repository independently.

Description

When versioning multiple projects in a single repository independently, changes committed to a given project will affect the versions of all other projects because every commit affects height. This enhancement adds a MinVerIgnoreHeight (-i|--ignore-height) option which can be used to prevent this from happening.

Usage

MinVer package

<PropertyGroup>
  <MinVerIgnoreHeight>true</MinVerIgnoreHeight>
</PropertyGroup>

minver-cli package

minver --ignore-height

Alternatives

MinVerVersionOverride could be used to "lock" the versions of other projects, but this would largely eliminate the benefits of MinVer.

Additional context

Thanks to @TimTK17 for raising this in #669.

@adamralph
Copy link
Owner Author

@TimTK17 FYI as soon as 3.0.0 is released (should be in a few days), I'll release this in a 3.1.0 pre-release.

@adamralph
Copy link
Owner Author

@TimTK17 I've released this in 3.1.0-beta.1, if you'd like to give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant