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

Check in Cargo.lock files for examples and test apps #1885

Merged
merged 2 commits into from
Oct 13, 2023
Merged

Conversation

rylev
Copy link
Collaborator

@rylev rylev commented Oct 12, 2023

We currently inconsistently check in Cargo.lock files across examples and test apps. Whether to check in Cargo.lock files is an area of debate because there are advantages and disadvantages to both. The Cargo team has officially said ¯_(ツ)_/¯ to this question..

For our example and test apps, the ability to do reproducible builds is the biggest reason to check in the lock files. Everyone will now build these examples and test apps exactly the same way (even if a new semver compatible version of a dependency is released in the mean time). This , however, might make PRs more noisy as updating a dependency (especially through the Rust SDK) might cause a cascading effect that causes all the Cargo.lock files to need to update. I believe this cost is worth it.

Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
@rylev rylev requested review from lann and dicej October 12, 2023 09:36
Copy link
Contributor

@dicej dicej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

@rylev rylev merged commit 7857059 into main Oct 13, 2023
10 checks passed
@rylev rylev deleted the checkin-cargo-lock branch October 13, 2023 08:32
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.

3 participants