cache: Cached data restored from Rust's Cargo build is corrupted

https://github.com/rust-lang/cargo/issues/8603

It happened only on macOS executor.

It seems that file target/debug/deps/libserde_derive-797b01cb80d42716.dylib restored from cache is corrupted.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 14
  • Comments: 19 (7 by maintainers)

Commits related to this issue

Most upvoted comments

@zonyitoo Forcing the Mac runner to use GNU tar instead of BSD tar seems to fix the issue. Please consider using this as a workaround until we can devise a more permanent solution. It adds about 10-15 seconds to install GNU tar, but the savings from skipping the build greatly outweighs this.

Code change: https://github.com/dhadka/shadowsocks-rust/pull/1 Test run: https://github.com/dhadka/shadowsocks-rust/pull/1/checks

CC @dae

@maxim-lobanov Yes, we have such a plan.