Skip to content

chore: Add Cargo.lock for pythnet_sdk and renable pre-commit CI #2465

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 12, 2025

Conversation

jayantk
Copy link
Contributor

@jayantk jayantk commented Mar 11, 2025

Summary

pre-commit in CI was broken because (1) the latest version of a dependency of pythnet SDK needs a higher rust compiler version, and (2) there wasn't a Cargo.lock file for pythnet_sdk.

Using Cargo.lock files for libraries is a bit controversial in the Rust community, as some argue that no Cargo.lock ensures that you keep your library up-to-date with the latest version of dependencies. However, this of course means you don't have repeatable builds, so CI and such are problems. In our case, I think CI is more important than keeping up to date with dependencies (as we're essentially the only people using the library.)

How has this been tested?

I ran the clippy command locally. Also, if pre-commit passes in CI, then it's good to go.

Copy link

vercel bot commented Mar 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 3:47pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 3:47pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 3:47pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 3:47pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 3:47pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 3:47pm

@jayantk jayantk merged commit 52d5086 into main Mar 12, 2025
9 checks passed
@jayantk jayantk deleted the pause_pre_commit3 branch March 12, 2025 15:58
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