Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/rust: cargo toml as part of hash #719

Closed
wants to merge 7 commits into from

Conversation

drahnr
Copy link
Collaborator

@drahnr drahnr commented Apr 3, 2020

A questionable addition, regarding adding Cargo.toml to the assets for distributed compiles and also make it part of the hash lookup key.

Causes cache invalidation on Cargo.toml change, which is probably not anticipated.

Issue #675 - additive Cargo.toml for each rust dist compile request makes not too much sense right now, the negative impact is pretty big for a config key change

@drahnr
Copy link
Collaborator Author

drahnr commented Apr 3, 2020

Includes commits of #718 as well as #710

Solves a corner case when a procmacro relies upon Cargo.toml availability
to retrieve crate aliases from Cargo.toml.

Issue: mozilla#676

Side effects: Cache invalidation on Cargo.toml comment changes, the hash changes
and as such the cache breaks.
Causes false negatives when Cargo.toml changed, cache lookups will still
succeed.
@drahnr drahnr force-pushed the feat-cargo-toml-as-part-of-hash branch from 8a4b6cb to 525ceab Compare April 3, 2020 09:26
@drahnr
Copy link
Collaborator Author

drahnr commented Jul 2, 2020

Besides the merge conflicts, I'd still be interested in getting some feedback here :)

@glandium
Copy link
Collaborator

Can you detail the reason behind this PR?

@drahnr
Copy link
Collaborator Author

drahnr commented Dec 10, 2020

Until I get around to impl rust-lang/rust#73921 this was an initial workaround to make sccache usable for builds like https://github.com/paritytech/substrate which needs to resolve codec to the actual alt name iirc. Note that the PR was created before I was aware of the rustc issue, so it can probably be closed.

@glandium
Copy link
Collaborator

Closing per #719 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants