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

Print diagnostic when failing to get VSN with Git #2804

Merged

Conversation

berbiche
Copy link
Contributor

@berbiche berbiche commented Jul 4, 2023

The function collect_default_refcount/1 of rebar_git_resource did not log the error message when it failed to get the vsn number with its git log command.

  • A diagnostic error message is now printed with the status code and output message of the failing command.

I encountered this error with GitHub Actions CI (actions/checkout#1169)
and failed to find the appropriate error cause because there was no diagnostic logging from rebar.

According to the CONTRIBUTING documentation, a test should be attached with this PR but I'm not sure how to add a test for this.
Any guidance would be appreciated.

The function `collect_default_refcount/1` of `rebar_git_resource`
did not log the error message when it failed to get the vsn number
with its `git log` command.

A diagnostic error message is now printed with the status code and
output message of the failing command.
@ferd ferd merged commit 64842a2 into erlang:main Jul 5, 2023
6 checks passed
@berbiche berbiche deleted the fix/diagnostic-logging-for-git-vsn-command branch July 6, 2023 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants