Live data from Hacker News

I've compared nearly all Rust crates.io crates to contents of their Git repos

mastodon.social

1–10 of 65 posts

Re: I've compared nearly all Rust crates.io crates to contents of their Git repos

#4
post #2

Good initiative. Now people need to go through this and do the reviews :-) Next step would be to do reproducible builds (if it's not already the case).

Not a Rust dev so maybe a dumb question, but is this more involved than just running diffs? If so, what needs to be done?

Re: I've compared nearly all Rust crates.io crates to contents of their Git repos

#5
post #4
post #2

Good initiative. Now people need to go through this and do the reviews :-) Next step would be to do reproducible builds (if it's not already the case).

Not a Rust dev so maybe a dumb question, but is this more involved than just running diffs? If so, what needs to be done?

The key thing is interpretation of the diff. Is there a difference since they ran some code generator ins the crate contains generated code, not present in the repo or did they add a backdoor?

Re: I've compared nearly all Rust crates.io crates to contents of their Git repos

#8
How crazy would it be to have a package repository that also builds the artifacts it distributes? You’d need a high barrier to entry to save on costs and time sifting through garbage. Perhaps it’s this high barrier that would prevent such a repository from taking off though. Perhaps this is just a really dumb step on a path leading back to simple checksum validations… though with those, you’re only validating that whatever was uploaded is what you downloaded, it doesn’t ensure that it was built from a known set of source files… hard problems.

Re: I've compared nearly all Rust crates.io crates to contents of their Git repos

#9

How crazy would it be to have a package repository that also builds the artifacts it distributes? You’d need a high barrier to entry to save on costs and time sifting through garbage. Perhaps it’s this high barrier that would prevent such a repository from taking off though. Perhaps this is just a really dumb step on a path leading back to simple checksum validations… though with those, you’re only validating that wh…

Isn't this gentoo?

Re: I've compared nearly all Rust crates.io crates to contents of their Git repos

#10
post #7

Deterministic compilation is the best way to let people validate what they are downloading from repositories is what is in the codebases.

> Deterministic compilation is the best way to let people validate what they are downloading from repositories is what is in the codebases.

"the best way"? Please make the argument for why. To do it properly, you must steel-man the alternatives (not shoot down straw-men)

Post reply on HN