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

Support different consolidation strategies in pull-package-versions #12

Open
BalassaMarton opened this issue Aug 27, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@BalassaMarton
Copy link
Contributor

In case a central version already exists, the current implementation either discards the package version, or updates it in the central file only if --update is specified AND the referenced version is higher than the central version.
We should add options to fine tune this behavior. Some cases we should consider (reference refers to the Version in PackageReference and central to the Version in the existing PackageVersion, if any).

  • Update only if reference > central
  • Update only if reference > central and reference.major = central.major
  • Skip if reference.major < central.major (and leave the warning or error to the CPVM implementation)

Also, multiple existing references with different versions should be consolidated using similar strategies.

@BalassaMarton BalassaMarton added the enhancement New feature or request label Aug 27, 2021
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

No branches or pull requests

1 participant