From bc131664d504a7abfb08f55e428cd50a01c92028 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 10 Nov 2022 20:57:51 +0100 Subject: [PATCH] Workaround https://github.com/rust-lang/cargo/issues/10583 --- packages/el8/Dockerfile | 1 + packages/el8/cargo-config.toml | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 packages/el8/cargo-config.toml diff --git a/packages/el8/Dockerfile b/packages/el8/Dockerfile index 1ed2f53..90b0089 100644 --- a/packages/el8/Dockerfile +++ b/packages/el8/Dockerfile @@ -3,6 +3,7 @@ RUN yum install -y openssl-devel RUN yum groupinstall -y 'Development Tools' RUN curl https://sh.rustup.rs -sSf | sh -s -- -y ENV PATH=/root/.cargo/bin:$PATH +COPY cargo-config.toml /root/.cargo/config.toml RUN cargo install cargo-rpm WORKDIR /root/src/ CMD cargo rpm build diff --git a/packages/el8/cargo-config.toml b/packages/el8/cargo-config.toml new file mode 100644 index 0000000..449dc05 --- /dev/null +++ b/packages/el8/cargo-config.toml @@ -0,0 +1,3 @@ +# https://github.com/rust-lang/cargo/issues/10583 +[net] +git-fetch-with-cli = true