Skip to content

Commit 92c33c4

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

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/rust-lang/cargo/issues/6513#issuecomment-864582147
27+
# See: https://github.com/rust-lang/cargo/issues/6513#issuecomment-1425753938
2828
# See: https://github.com/rust-lang/cargo/issues/6513
29-
RUN mkdir ~/.cargo/ && echo -e '[net]\ngit-fetch-with-cli = true' > ~/.cargo/config.toml
29+
RUN git fetch --force --update-head-ok https://github.com/rust-lang/crates.io-index +HEAD:refs/remotes/origin/HEAD -v
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)