Bugfix: Fetch should not force use of curl to check url existence#34225
Bugfix: Fetch should not force use of curl to check url existence#34225alalazo merged 2 commits intospack:developfrom
Conversation
|
@alalazo @trws What fun! |
|
Thankfully now that we don't have to deal with ancient, pre-typing, python those are a pretty easy fix. Make the type-hint a type-hint rather than a comment and it should pass. |
|
I don't think coverage is essential here. What we may have dropped are just the lines in |
I don't think you missed anything. The value for that arg defaults to I suppose I could add a test of that method -- preferably mocking |
alalazo
left a comment
There was a problem hiding this comment.
2 for mypy and one for the bug! (Thanks Tammy!)
I grep'd for places where curl is used and, AFAICT, the rest were gated by the configuration parameter. So yes, a one line fix as you'd pointed out. |
|
@spackbot run pipeline |
|
I've started that pipeline for you! |
|
@spackbot run pipeline |
|
I've started that pipeline for you! |
|
@alalazo Thank you! |
…ack#34225) * Bugfix: Fetch should not force use of curl to check url existence * Switch type hints from comments to actual hints
…ack#34225) * Bugfix: Fetch should not force use of curl to check url existence * Switch type hints from comments to actual hints
This PR does not force
fetchto usecurlto check URL existence.Bug was introduced in #29026 as discussed in #29026 (comment).