matthiaskrgr / matthiaskrgr/cargo-cache

crate source verification

Open
#110 4 comments 0 reactions 1 assignee View on GitHub

@matthiaskrgr is already working on this.

Since Dec 20, 2021.

feature
Dominant language
Rust
Stars
994
Forks
26
PR merge metrics
No merged PRs in 30d

Description

It would be interesting if cargo-cache could find local extracted sources that differ from the contents of the respective .xz /.crate archives.

EDIT: idea dump:

  • git fsck all git repos (already implemented: --fsck) todo: parallelize
  • check extracted sources for mismatching sizes (already implemented)
  • read all the .crate archives and make sure they are ok (not sure if this is needed since cargo would complain anyway I guess..?)
  • check git repo checkouts for added/missing/edited files
  • check extracted crate sources content (probably expensive, need extract every .crate into a temp dir and compare hash sums / diffs of files, there might also be a ton of unexpected problems)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.