Skip to content

Conversation

@anryko
Copy link
Contributor

@anryko anryko commented Apr 16, 2020

This change fixes #735 by catching an extra corner case
exception FileNotFoundError.

Copy link
Member

@webknjaz webknjaz left a comment

Choose a reason for hiding this comment

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

I think the regression test should be added to make this mergeable and this will now cause AttributeError (per my comment below).

@webknjaz webknjaz changed the title Fix missing git binary issue (#735) Gracefully process a missing git binary when falling-back to pure-python discovery Apr 17, 2020
@anryko anryko force-pushed the 735_fix_missing_git_error branch from 79b8a21 to c058ac2 Compare April 17, 2020 17:00
@anryko anryko force-pushed the 735_fix_missing_git_error branch from c058ac2 to a39a511 Compare April 17, 2020 17:03
Copy link
Member

@webknjaz webknjaz left a comment

Choose a reason for hiding this comment

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

The change seems ok, still waiting for the regression test before I can merge.

@anryko
Copy link
Contributor Author

anryko commented Apr 20, 2020

@webknjaz could you suggest how the test should work?

@webknjaz
Copy link
Member

@anryko monkeypatch.setenv('PATH', '/dev/null') and then use capsys to check stdout for the verbose message (both are built-in pytest fixtures).

@anryko anryko force-pushed the 735_fix_missing_git_error branch from e39ae10 to a85fcb4 Compare April 22, 2020 09:39
@webknjaz webknjaz mentioned this pull request Apr 23, 2020
@anryko anryko force-pushed the 735_fix_missing_git_error branch 2 times, most recently from eb267d4 to 890c2a2 Compare April 23, 2020 11:18
@anryko anryko force-pushed the 735_fix_missing_git_error branch from 890c2a2 to d42f212 Compare April 23, 2020 11:37
@anryko anryko force-pushed the 735_fix_missing_git_error branch 3 times, most recently from 64622dc to 1397d90 Compare April 23, 2020 12:52
@anryko anryko force-pushed the 735_fix_missing_git_error branch 2 times, most recently from a72d841 to 5d5fafa Compare April 23, 2020 13:07
@anryko anryko force-pushed the 735_fix_missing_git_error branch 2 times, most recently from 5d5fafa to 13cadb4 Compare April 23, 2020 14:45
@anryko anryko force-pushed the 735_fix_missing_git_error branch from 13cadb4 to 4f7ebf6 Compare April 23, 2020 14:49
@anryko anryko force-pushed the 735_fix_missing_git_error branch from 4f7ebf6 to b030311 Compare April 23, 2020 15:28
@webknjaz webknjaz merged commit 29802a5 into ansible:master Apr 23, 2020
@anryko anryko deleted the 735_fix_missing_git_error branch April 24, 2020 09:00
@anryko
Copy link
Contributor Author

anryko commented Apr 24, 2020

@webknjaz thanks! Great review.

@ssbarnea ssbarnea added the bug label Aug 17, 2020
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.

[HELP WANTED] [SEND PR] Missing Git breaks the auto-discovery of YAML files

3 participants