Closed gchazot closed 2 years ago
I've also come down further to the bottom of this issue.It is a side effect of:
ssh-
while keeping the old option available (in this PR)So this is a bit borderline bugfix on click
side that broke backwards compatibility (and is not documented in the CHANGELOG :-1: ) but this causes a bug in pyinfra
.
I think there are a couple of options to improve the situation and they're both quite simple:
pyinfra
install requirements to need click>=7.0
.pyinfra
compatible with both click
situations by specifying explicitely the name of the option.I think option 2 is the nicest as it introduces explicit naming, and avoids forcing users to upgrade both pyinfra
and click
PR #765 Implements the change for option 2. above
Describe the bug
To Reproduce
click <= 6.7
pyinfra >= 1.4
--ssh-blah
or corresponding--blah
optionExpected behavior
No exception is raised :-D
Meta
Include output of
pyinfra --support
.How was pyinfra installed (source/pip)? Pipenv (pip), pipfile extract:
Include pyinfra-debug.log (if one was created)
Consider including output with
-vv
and--debug
. Same output aspyinfra-debug.log
content