No need for patched self_upgrade

This commit is contained in:
Roey Darwish Dror
2019-01-13 22:54:51 +02:00
parent ab5b02c6c8
commit 235df19ac5
3 changed files with 6 additions and 9 deletions

8
Cargo.lock generated
View File

@@ -1116,8 +1116,8 @@ dependencies = [
[[package]] [[package]]
name = "self_update" name = "self_update"
version = "0.5.0" version = "0.5.1"
source = "git+https://github.com/r-darwish/self_update?branch=github-extended#e0408201c5ad575a6a4b70e49882a0a5f6a213d6" source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [ dependencies = [
"either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", "either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
"flate2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "flate2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1522,7 +1522,7 @@ dependencies = [
"lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
"nix 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)", "nix 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
"self_update 0.5.0 (git+https://github.com/r-darwish/self_update?branch=github-extended)", "self_update 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.84 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.84 (registry+https://github.com/rust-lang/crates.io-index)",
"shellexpand 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "shellexpand 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"structopt 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", "structopt 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -1867,7 +1867,7 @@ dependencies = [
"checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27" "checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27"
"checksum security-framework 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "697d3f3c23a618272ead9e1fb259c1411102b31c6af8b93f1d64cca9c3b0e8e0" "checksum security-framework 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "697d3f3c23a618272ead9e1fb259c1411102b31c6af8b93f1d64cca9c3b0e8e0"
"checksum security-framework-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "40d95f3d7da09612affe897f320d78264f0d2320f3e8eea27d12bd1bd94445e2" "checksum security-framework-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "40d95f3d7da09612affe897f320d78264f0d2320f3e8eea27d12bd1bd94445e2"
"checksum self_update 0.5.0 (git+https://github.com/r-darwish/self_update?branch=github-extended)" = "<none>" "checksum self_update 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4e4997d828329f3bea234b5efd084f0ee07b284a556d64023cc0e3e47cc44d74"
"checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" "checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
"checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
"checksum serde 1.0.84 (registry+https://github.com/rust-lang/crates.io-index)" = "0e732ed5a5592c17d961555e3b552985baf98d50ce418b7b655f31f6ba7eb1b7" "checksum serde 1.0.84 (registry+https://github.com/rust-lang/crates.io-index)" = "0e732ed5a5592c17d961555e3b552985baf98d50ce418b7b655f31f6ba7eb1b7"

View File

@@ -21,7 +21,7 @@ log = "0.4.6"
env_logger = "0.6.0" env_logger = "0.6.0"
walkdir = "2.2.7" walkdir = "2.2.7"
console = "=0.7.1" console = "=0.7.1"
self_update_crate = { version = "0.5.0", optional = true, package = "self_update" } self_update_crate = { version = "0.5.1", optional = true, package = "self_update" }
lazy_static = "1.2.0" lazy_static = "1.2.0"
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
@@ -30,9 +30,6 @@ nix = "0.12.0"
[profile.release] [profile.release]
lto = true lto = true
[patch.crates-io]
self_update = { git = "https://github.com/r-darwish/self_update", branch = "github-extended" }
[features] [features]
default = [] default = []

View File

@@ -28,7 +28,7 @@ pub fn self_update() -> Result<(), Error> {
.no_confirm(true) .no_confirm(true)
.build() .build()
}) })
.and_then(|u| u.update2()) .and_then(|u| u.update_extended())
.context(ErrorKind::SelfUpdate)?; .context(ErrorKind::SelfUpdate)?;
if let GitHubUpdateStatus::Updated(release) = &result { if let GitHubUpdateStatus::Updated(release) = &result {