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

Handle errors gracefully when parsing GitHub version tags #99

Merged
merged 3 commits into from
Aug 3, 2021

Conversation

camsaul
Copy link
Contributor

@camsaul camsaul commented Aug 3, 2021

Fixes #98 (partially at least).

This change will log an error message if it's unable to parse GitHub version tags, then move on:

Error determining latest version for GitHub dep "octokit/request-action" (current: "v2.x", latest: "v2.1.0"): class java.lang.String cannot be cast to class java.lang.Number

This prevents the entire process from failing.

I don't know enough about the codebase to know what the expected behavior should actually be here, so please let me know if some other approach would be better. This is definitely an improvement over failing entirely tho IMO

Copy link
Owner

@liquidz liquidz left a comment

Choose a reason for hiding this comment

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

@camsaul Thanks!
Overall this PR looks good.

Could you fix just one point for backward compatibility?

src/antq/ver/github_tag.clj Outdated Show resolved Hide resolved
Co-authored-by: Iizuka Masashi <liquidz.uo@gmail.com>
@camsaul camsaul requested a review from liquidz August 3, 2021 21:14
Copy link
Owner

@liquidz liquidz left a comment

Choose a reason for hiding this comment

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

Thanks!

@liquidz liquidz merged commit 6c4fe34 into liquidz:main Aug 3, 2021
@liquidz
Copy link
Owner

liquidz commented Aug 3, 2021

@camsaul I'll cut a new release later

@camsaul camsaul deleted the handle-gh-errors-gracefully branch August 6, 2021 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants