-
Notifications
You must be signed in to change notification settings - Fork 677
Remove click<8.1.8 version limit #1240
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
base: main
Are you sure you want to change the base?
Conversation
It would be great to have some bisecting done to narrow down the problem. I took a look at the most likely parts of the |
Reproducing it locally, narrowed it down to 299efb82e1a3d34d870129dc0c677c6efb42d811 but haven't investigated more as I'm unfamiliar with all this machinery lol. |
Ah, that's very helpful! |
5050acc
to
a0b99dd
Compare
8a404f3
to
a2c092d
Compare
@wrmsr your analysis is great, thanks! I tried out a different idea in #1305, and the tests pass. My bumbling with env variables in #1241 was never going to work. However, the tests were telling us something! We allow setting a pager in the config file with arguments:
and that is going to break with the new |
@rolandwalker >_< forgot to close the mkstemp fd, seems like linux won't exec an open-for-write file. Tested locally on 🍎 and 🐧 and it passes. Mind rerunning to confirm? Not saying this is the proper fix if a configurable multi-token 'shelly' pager command is supported. At least for the very first breaking click version - the one with the diff I linked - I don't think that's doable without moving this kind of hack into mycli since the whole thing is |
Great! Then we only have to blocklist some range of versions. |
Do you need me to handle the lint fixes? |
I opened an issue with |
Description
click
was set to<8.1.8
in bb18b0c in #1200 due to this test run failing.Looking at the click diff,
_pipepager
was changed toshutil.which
the cmd it's given, where it previously just dumped it intosubprocess.Popen
withshell=True
. Test code tries to set the pager to a multi-arg shell invocation, not awhich
-able path to a single file.I've changed it to write out an executable temp file to pass as the pager, and that seems to work on my box.
I'm not familiar with the project's supported environments and how well this fits into them, but this seems to fix the problem on my box.
Checklist
changelog.md
.AUTHORS
file (or it's already there).