remove reqwest from dev-deps

also regenerate lockfile to remove curl and friends from Cargo.lock
master
Muhammad Hamza 2 years ago
parent 4e3b02ac91
commit 0c245183c0
No known key found for this signature in database
GPG Key ID: B7812BE5DBACA4E0
  1. 671
      Cargo.lock
  2. 1
      Cargo.toml
  3. 6
      tests/all/download.rs

671
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -42,5 +42,4 @@ lazy_static = "1.4.0"
predicates = "2.1.5"
serial_test = "1.0.0"
tempfile = "3.3.0"
reqwest = { version = "0.11.14", features = ["blocking"] }

@ -84,10 +84,10 @@ fn all_latest_tool_download_urls_valid() {
// For all valid tool, arch & os combinations,
// error out when any of them is a 404 or similar
if let Ok(url) = install::prebuilt_url_for(&tool, "0.2.82", &arch, &os) {
let client = reqwest::blocking::Client::new();
// Use HTTP HEAD instead of GET to avoid fetching lots of stuff
let res = client.head(&url).send().unwrap();
if res.status().is_client_error() {
let res = ureq::head(&url).call().unwrap();
let status = res.status();
if 500 > status && status >= 400 {
errors.push(format!(
"Can't download URL {} for {} on {}: {}",
url,

Loading…
Cancel
Save