-
Notifications
You must be signed in to change notification settings - Fork 157
v3: Re-export v4 hash #418
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
Conversation
| [profile.dev.build-override] | ||
| opt-level = 1 | ||
|
|
||
| [patch.crates-io] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are all solana-* dependencies from the hash crate so they will always use the repository version instead of crates.io ones.
scripts/test-miri.sh
Outdated
| # Note: fixed version of solana-hash is needed here to avoid | ||
| # dependency resolution issues since v3 just re-exports | ||
| # v4 of the `solana-hash` crate. | ||
| ./cargo nightly miri test -p [email protected] -p solana-account-info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was needed since miri was complaining that there were 2 solana-hash crates available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can actually remove solana-hash from this script, since there are no tests in the crate.
joncinque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a fly-by
joncinque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! (assuming CI passes this time)
Problem
There was a major version of
solana-hashsince features were created so dependencies are optional and the crate was madeno_stdcompatible. Although the types between the version have not changed, the major bump makes them to be considered different.Solution
Follow the semver trick and re-export the v4 type on v3, so they will be considered the same type.