-
Notifications
You must be signed in to change notification settings - Fork 250
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
Star "*" notation in Cargo.toml is not picking the correct dependency version #164
Comments
Note, reproducibility of this issue might be difficult, since it might depend on the local cargo cache. |
@nearmax I got this same when upgrading dependencies in Would it work here as well? |
Re-export is mostly done. AFAIK, all the issues are resolved, but @evgenykuzyakov is busy finishing the contracts, so he said he would have the bandwidth only the next week (it sounded fine to me). “*” versioning is very conservative and it will indeed try to keep Cargo.lock with minimal changes if possible causing such mismatches. |
@frol @nearmax @evgenykuzyakov I'm still not clear on if we actually want this.
Does this mean we should stop using it? Or is it a normal Rust workflow to delete |
We have recurrent complains from people copying one of our examples and getting obscure compilation errors as you have observed. This is because of " |
Sorry, still not quite understanding, but I think that's because I'm thinking about this from the perspective of other apps, such as any created with Will the "re-exporting" change you're making here in |
It will make "*" unnecessary. |
Even better! Thanks for the clarification. |
obsolete. |
I just tried to compile the contract with the following Cargo.toml:
And received the following error:
Notice that it complains about borsh version being incompatible with whatever version we use in
near-sdk-rs
. It seems like "*" notation does not pick the correct compatible version. After I replacedborsh = "*"
withborsh = "0.6.1"
it compiled successfully."*"
from all our examples and stop advising people to use"*"
notation. CC @mikedotexeCC @evgenykuzyakov
The text was updated successfully, but these errors were encountered: