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: difference in Cargo.lock for ic0 package #1205

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

NikolaMilosa
Copy link
Contributor

@NikolaMilosa NikolaMilosa commented Jan 15, 2025

We have a long running issue of difference of running the following commands that lock the ic0 package differently:

cargo check
# vs
bazel build ...

It can also happen if the code editor runs an lsp with some different arguments by default.

With this change we always lock against crates-io version since that is what is used when doing bazel build. In theory this should be resolved in upstream packages but for now this should do. The github version is being updated along with other github deps when we upgrade crate versions meaning that all compilation errors will be caught there.

Changes like this should no longer happen:
image

@NikolaMilosa NikolaMilosa requested a review from a team as a code owner January 15, 2025 02:24
@NikolaMilosa NikolaMilosa changed the title fix: difference in running locking of ic0 package fix: difference in Cargo.lock for ic0 package Jan 15, 2025
@NikolaMilosa NikolaMilosa merged commit c00b52b into main Jan 15, 2025
5 checks passed
@NikolaMilosa NikolaMilosa deleted the nm-fixing-cargo-bazel-differences branch January 15, 2025 10:49
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.

2 participants