Skip to content

Commit 6b31233

Browse files
committed
Try another workaround for armv6 and armv7
See: rust-lang/cargo#6513 (comment) See: rust-lang/cargo#6513
1 parent f33bd2c commit 6b31233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ RUN tar --strip-components=1 -C /workdir -xzf /tmp/v$RUST_PYTHON_VERSION.tar.gz
2424
RUN git apply /tmp/9cac89347e2276fcb309f108561e99f4be5baff2.patch
2525

2626
# armv6 and armv7 fix
27-
# See: https://github.com/pyca/cryptography/issues/6673#issuecomment-985943023
27+
# See: https://github.com/rust-lang/cargo/issues/6513#issuecomment-864582147
2828
# See: https://github.com/rust-lang/cargo/issues/6513
29-
RUN mkdir -p ~/.cargo/registry/index && cd ~/.cargo/registry/index && git clone --bare https://github.com/rust-lang/crates.io-index.git github.com-1ecc6299db9ec823
29+
RUN mkdir ~/.cargo/ && echo -e '[net]\ngit-fetch-with-cli = true' > ~/.cargo/config.toml
3030

3131
# Remove the git mode that triggers an error on armv6 and armv7
3232
# Ref: https://github.com/rust-lang/cargo/issues/2808 (failed to mmap. Could not write data: Out of memory; class=Os (2))

0 commit comments

Comments
 (0)