From 39a83979e90b710565c1bc0faab8674452838fab Mon Sep 17 00:00:00 2001 From: John Watson Date: Thu, 26 Oct 2023 17:45:13 +0100 Subject: [PATCH] fix: bump docker-api crate to git ref --- BUCK | 5 +++++ Cargo.lock | 8 +++----- Cargo.toml | 2 +- third-party/rust/BUCK | 35 +++++++++++++---------------------- third-party/rust/Cargo.lock | 8 +++----- third-party/rust/Cargo.toml | 2 +- 6 files changed, 26 insertions(+), 34 deletions(-) diff --git a/BUCK b/BUCK index 8afa3d299d..0b6683f4dd 100644 --- a/BUCK +++ b/BUCK @@ -28,6 +28,11 @@ alias( actual = "//bin/sdf:sdf", ) +alias( + name = "si", + actual = "//bin/si:si", +) + alias( name = "veritech", actual = "//bin/veritech:veritech", diff --git a/Cargo.lock b/Cargo.lock index 7968c64751..156b8e8426 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1589,8 +1589,7 @@ checksum = "0688c2a7f92e427f44895cd63841bff7b29f8d7a1648b9e7e07a4a365b2e1257" [[package]] name = "docker-api" version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4576e993f4ef4805931a835b7afe71dec6cbd096e9b08bbd8e8f03e1940b2745" +source = "git+https://github.com/vv9k/docker-api-rs.git?rev=b1f1891d1d17cb522cc20212452c8c039c5e0810#b1f1891d1d17cb522cc20212452c8c039c5e0810" dependencies = [ "asynchronous-codec", "base64 0.13.1", @@ -1613,9 +1612,8 @@ dependencies = [ [[package]] name = "docker-api-stubs" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6198e6d77eb486d04c9b3997aec536428a7cbba833e84cdfda49e144c8df1734" +version = "0.6.0" +source = "git+https://github.com/vv9k/docker-api-rs.git?rev=b1f1891d1d17cb522cc20212452c8c039c5e0810#b1f1891d1d17cb522cc20212452c8c039c5e0810" dependencies = [ "chrono", "serde", diff --git a/Cargo.toml b/Cargo.toml index 3b11a5df5b..61e218d5e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,7 +68,7 @@ derive_builder = "0.12.0" derive_more = "0.99.17" diff = "0.1.13" directories = "5.0.1" -docker-api = "0.14" +docker-api = { "git" = "https://github.com/vv9k/docker-api-rs.git", rev = "b1f1891d1d17cb522cc20212452c8c039c5e0810" } dyn-clone = "1.0.11" flate2 = "1.0.26" futures = "0.3.28" diff --git a/third-party/rust/BUCK b/third-party/rust/BUCK index 4a804f63e5..9d380e0b90 100644 --- a/third-party/rust/BUCK +++ b/third-party/rust/BUCK @@ -24,6 +24,13 @@ git_fetch( visibility = [], ) +git_fetch( + name = "vv9k/docker-api-rs.git", + repo = "https://github.com/vv9k/docker-api-rs.git", + rev = "b1f1891d1d17cb522cc20212452c8c039c5e0810", + visibility = [], +) + http_archive( name = "Inflector-0.11.4.crate", sha256 = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3", @@ -3556,19 +3563,11 @@ alias( visibility = ["PUBLIC"], ) -http_archive( - name = "docker-api-0.14.0.crate", - sha256 = "4576e993f4ef4805931a835b7afe71dec6cbd096e9b08bbd8e8f03e1940b2745", - strip_prefix = "docker-api-0.14.0", - urls = ["https://crates.io/api/v1/crates/docker-api/0.14.0/download"], - visibility = [], -) - cargo.rust_library( name = "docker-api-0.14.0", - srcs = [":docker-api-0.14.0.crate"], + srcs = [":vv9k/docker-api-rs.git"], crate = "docker_api", - crate_root = "docker-api-0.14.0.crate/src/lib.rs", + crate_root = "vv9k/docker-api-rs/src/lib.rs", edition = "2021", features = [ "chrono", @@ -3582,7 +3581,7 @@ cargo.rust_library( ":bytes-1.4.0", ":chrono-0.4.26", ":containers-api-0.9.0", - ":docker-api-stubs-0.5.0", + ":docker-api-stubs-0.6.0", ":futures-util-0.3.28", ":http-0.2.9", ":hyper-0.14.26", @@ -3596,19 +3595,11 @@ cargo.rust_library( ], ) -http_archive( - name = "docker-api-stubs-0.5.0.crate", - sha256 = "6198e6d77eb486d04c9b3997aec536428a7cbba833e84cdfda49e144c8df1734", - strip_prefix = "docker-api-stubs-0.5.0", - urls = ["https://crates.io/api/v1/crates/docker-api-stubs/0.5.0/download"], - visibility = [], -) - cargo.rust_library( - name = "docker-api-stubs-0.5.0", - srcs = [":docker-api-stubs-0.5.0.crate"], + name = "docker-api-stubs-0.6.0", + srcs = [":vv9k/docker-api-rs.git"], crate = "docker_api_stubs", - crate_root = "docker-api-stubs-0.5.0.crate/src/lib.rs", + crate_root = "vv9k/docker-api-rs/docker-api-stubs/lib/src/lib.rs", edition = "2021", visibility = [], deps = [ diff --git a/third-party/rust/Cargo.lock b/third-party/rust/Cargo.lock index b1b4d80de3..14b4272ff0 100644 --- a/third-party/rust/Cargo.lock +++ b/third-party/rust/Cargo.lock @@ -1317,8 +1317,7 @@ checksum = "0688c2a7f92e427f44895cd63841bff7b29f8d7a1648b9e7e07a4a365b2e1257" [[package]] name = "docker-api" version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4576e993f4ef4805931a835b7afe71dec6cbd096e9b08bbd8e8f03e1940b2745" +source = "git+https://github.com/vv9k/docker-api-rs.git?rev=b1f1891d1d17cb522cc20212452c8c039c5e0810#b1f1891d1d17cb522cc20212452c8c039c5e0810" dependencies = [ "asynchronous-codec", "base64 0.13.1", @@ -1341,9 +1340,8 @@ dependencies = [ [[package]] name = "docker-api-stubs" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6198e6d77eb486d04c9b3997aec536428a7cbba833e84cdfda49e144c8df1734" +version = "0.6.0" +source = "git+https://github.com/vv9k/docker-api-rs.git?rev=b1f1891d1d17cb522cc20212452c8c039c5e0810#b1f1891d1d17cb522cc20212452c8c039c5e0810" dependencies = [ "chrono", "serde", diff --git a/third-party/rust/Cargo.toml b/third-party/rust/Cargo.toml index aed0f3f36f..7c910d7f49 100644 --- a/third-party/rust/Cargo.toml +++ b/third-party/rust/Cargo.toml @@ -42,7 +42,7 @@ derive_builder = "0.12.0" derive_more = "0.99.17" diff = "0.1.13" directories = "5.0.1" -docker-api = "0.14" +docker-api = { "git" = "https://github.com/vv9k/docker-api-rs.git", rev = "b1f1891d1d17cb522cc20212452c8c039c5e0810" } dyn-clone = "1.0.11" flate2 = "1.0.26" futures = "0.3.28"