From 08e3d259ca8f7b9ba1a5603df7e1edf9f1ccf670 Mon Sep 17 00:00:00 2001 From: "fupan.lfp" Date: Tue, 26 May 2020 11:14:39 +0800 Subject: [PATCH] agent: fix the issue of building error with latest ttrpc Since the ttrpc upgraded with async supported, which isn't compatible with current agent, thus it's better to change the dependency to a stable branch. Fixes: #229 Signed-off-by: fupan.lfp --- src/agent/Cargo.toml | 2 +- src/agent/protocols/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/Cargo.toml b/src/agent/Cargo.toml index 3b99cf9946..57664b8629 100644 --- a/src/agent/Cargo.toml +++ b/src/agent/Cargo.toml @@ -12,7 +12,7 @@ protocols = { path = "protocols" } netlink = { path = "netlink" } lazy_static = "1.3.0" error-chain = "0.12.1" -ttrpc = { git = "https://github.com/containerd/ttrpc-rust.git" } +ttrpc = { git = "https://github.com/containerd/ttrpc-rust.git", branch="0.3.0" } protobuf = "=2.14.0" libc = "0.2.58" nix = "0.17.0" diff --git a/src/agent/protocols/Cargo.toml b/src/agent/protocols/Cargo.toml index ec02ec61c1..6a13919691 100644 --- a/src/agent/protocols/Cargo.toml +++ b/src/agent/protocols/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Hui Zhu "] edition = "2018" [dependencies] -ttrpc = { git = "https://github.com/containerd/ttrpc-rust.git" } +ttrpc = { git = "https://github.com/containerd/ttrpc-rust.git", branch="0.3.0" } protobuf = "=2.14.0" futures = "0.1.27"