Skip to content

Fix build-dev cache #2280

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

Merged
merged 2 commits into from
Mar 8, 2023
Merged

Conversation

celinval
Copy link
Contributor

@celinval celinval commented Mar 8, 2023

Description of changes:

After updating our dependencies, running cargo build-dev always trigger the recompilation of a few dependencies as well as kani-driver and kani-compiler.

This seems to be caused by this change on rustix dependency.

The problem here is that we share the same build folder for our tools and our binaries. But they build with slightly different cargo arguments, and this package decided to make their build script very sensitive to changes to their environment

To overcome this, force cargo build-dev to use a different folder for the tools build.

Resolved issues:

Related RFC:

Call-outs:

Testing:

  • How is this change tested? I manually ran the cargo build-dev multiple times.

  • Is this a refactor change?

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

After updating our dependencies, running `cargo build-dev` always
trigger the recompilation of a few dependencies as well as `kani-driver`
and `kani-compiler`.

This seems to be caused by
[this change](bytecodealliance/rustix#544) on
`rustix` dependency.

The problem here is that we share the same build folder for
our tools and our binaries. But they build with slightly different
cargo arguments, and this package decided to make their build script
very sensitive to changes to their environment

To overcome this, force `cargo build-dev` to use a different folder
for the tools build.
@celinval celinval requested a review from a team as a code owner March 8, 2023 01:53
@celinval celinval enabled auto-merge (squash) March 8, 2023 02:00
@celinval celinval merged commit bf5e697 into model-checking:main Mar 8, 2023
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