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

cleanup(gittag, githubrelease) remove deprecated code for field version #590

Merged
merged 5 commits into from
Mar 21, 2022

Conversation

dduportal
Copy link
Contributor

@dduportal dduportal commented Mar 20, 2022

This PR removes the deprecated code of the field version.

It also introduces the following changes:

  • Minor change on the Makefile to allow executing the end to end test with a custom binary directory (e.g. allow make test-e2e VENOM_VAR_binpath=./custom-dist/ to use the binary updatecli located in ./custom-dist/updatecli)
  • Decouple the SCM handlers from the concept of source. It removes th "source" argument from the method Init() (interface ScmHandler) as it was only used to define versionfilters.

Associated documentation PR: updatecli/website#264

Test

To test this pull request, you can run the following commands:

make test

Additional Information

Tradeoff

Potential improvement

@dduportal dduportal changed the title Deprecate/version cleanup(gittag, githubrelease) remove deprecated code for version Mar 20, 2022
@dduportal dduportal changed the title cleanup(gittag, githubrelease) remove deprecated code for version cleanup(gittag, githubrelease) remove deprecated code for field version Mar 20, 2022
@dduportal dduportal marked this pull request as ready for review March 20, 2022 08:14
@dduportal dduportal added resource-githubRelease Resource of kind GitHub Release resource-gittag Resource of kind Git Tag cleanup labels Mar 20, 2022
lemeurherve
lemeurherve previously approved these changes Mar 20, 2022
dduportal added a commit to dduportal/website that referenced this pull request Mar 20, 2022
- Deprecated field "version" - updatecli/updatecli#590
- Deprecated fields "postfix/prefix" - updatecli/updatecli#590
- Deprecated fields "replacers" - updatecli/updatecli#592
- SCM setup moved to the top level directive scms - updatecli/updatecli#388
- Deprecated top-level field source (singular source) - updatecli/updatecli#589

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
…testing

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
…rsion.Filter is used instead)

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
@dduportal
Copy link
Contributor Author

  • I'm waiting for review from 2 maintainers on this one (to be really sure that I did not do something wrong).
  • Proposed milestone: 0.22.3

@dduportal dduportal added this to the 0.22.3 milestone Mar 20, 2022
Copy link
Member

@olblak olblak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this huge cleanup, especially considering that I failed to correctly document the code which evolved many times

@dduportal
Copy link
Contributor Author

Thanks for this huge cleanup, especially considering that I failed to correctly document the code which evolved many times

Thanks, but don't be too harsh with yourself :) It's a looot of work, so let's improve this tool and its doc one step after the other

@dduportal dduportal enabled auto-merge (squash) March 21, 2022 19:18
@dduportal dduportal merged commit 0197f47 into updatecli:main Mar 21, 2022
@dduportal dduportal deleted the deprecate/version branch March 21, 2022 19:36
dduportal added a commit to updatecli/website that referenced this pull request Mar 22, 2022
- Deprecated field "version" - updatecli/updatecli#590
- Deprecated fields "postfix/prefix" - updatecli/updatecli#590
- Deprecated fields "replacers" - updatecli/updatecli#592
- SCM setup moved to the top level directive scms - updatecli/updatecli#388
- Deprecated top-level field source (singular source) - updatecli/updatecli#589

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup resource-githubRelease Resource of kind GitHub Release resource-gittag Resource of kind Git Tag
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants