File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ WORKDIR /workdir
6
6
ARG RUST_PYTHON_VERSION="0.2.0"
7
7
ENV CARGO_HOME="/workdir"
8
8
ENV CARGO_INSTALL_ROOT="/workdir"
9
+ # armv6 and armv7 fix
10
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
9
11
10
12
# Newer rust needed due to let...else feature
11
13
RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community rust cargo
@@ -23,11 +25,6 @@ RUN mkdir /workdir/rp__doc__/ && tar --strip-components=1 -C /workdir/rp__doc__/
23
25
RUN tar --strip-components=1 -C /workdir -xzf /tmp/v$RUST_PYTHON_VERSION.tar.gz
24
26
RUN git apply /tmp/9cac89347e2276fcb309f108561e99f4be5baff2.patch
25
27
26
- # armv6 and armv7 fix
27
- # See: https://github.com/rust-lang/cargo/issues/6513#issuecomment-1425753938
28
- # See: https://github.com/rust-lang/cargo/issues/6513
29
- RUN git fetch --force --update-head-ok https://github.com/rust-lang/crates.io-index +HEAD:refs/remotes/origin/HEAD -v
30
-
31
28
# Remove the git mode that triggers an error on armv6 and armv7
32
29
# Ref: https://github.com/rust-lang/cargo/issues/2808 (failed to mmap. Could not write data: Out of memory; class=Os (2))
33
30
RUN sed -i 's#{ git = .*#{ path = "/workdir/rp__doc__/" }#' /workdir/derive-impl/Cargo.toml
You can’t perform that action at this time.
0 commit comments