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

Fix hashing of parsed Cargo.toml #160

Merged
merged 1 commit into from Aug 12, 2023
Merged

Fix hashing of parsed Cargo.toml #160

merged 1 commit into from Aug 12, 2023

Conversation

NobodyXu
Copy link
Contributor

The values for the dependencies could be strings intead of objects, so add a try block to take care of that.

Also set dep.path to "" if the dependency contains a key path to make sure that the cache isn't invalidated due to change in workspace.

The values for the dependencies could be strings intead of objects, so
add a `try` block to take care of that.

Also set `dep.path` to `""` if the dependency contains a key `path` to
make sure that the cache isn't invalidated due to change in workspace.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
@NobodyXu
Copy link
Contributor Author

I discovered this when looking at the CI log, the warning added in #156 is really helpful.

@NobodyXu
Copy link
Contributor Author

I checked the CI and can confirm it does fix the bug.

@Swatinem Swatinem merged commit c0e052c into Swatinem:master Aug 12, 2023
22 checks passed
@NobodyXu NobodyXu deleted the fix-carg-toml-hashing branch August 12, 2023 10:36
@NobodyXu
Copy link
Contributor Author

Thank you!
Can we have a new release please?

@NobodyXu
Copy link
Contributor Author

Thanks

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