From ba3078b8e57696404986b454e1809272a2046e1c Mon Sep 17 00:00:00 2001 From: Jianyong Wu Date: Tue, 28 Apr 2020 16:05:13 +0800 Subject: [PATCH] ci: install rust back to 1.42.0 to avoid ci failure. There maybe a bug in the 1.43.1 cargo, so we need install rust back to 1.42.0 to avoid the failure when make the rust agent using the latest rust. Fixes: #202 Signed-off-by: Jianyong Wu --- src/agent/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/agent/Makefile b/src/agent/Makefile index 8c28065a87..f219ce9ef7 100644 --- a/src/agent/Makefile +++ b/src/agent/Makefile @@ -72,6 +72,9 @@ default: $(TARGET) show-header $(TARGET): $(TARGET_PATH) $(TARGET_PATH): $(SOURCES) | show-summary + @rustup default 1.42.0 + @rustup toolchain install 1.42.0-musl + @rustup target add $(ARCH)-unknown-linux-musl @cargo build --target $(TRIPLE) show-header: