-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: warn on soldeer.lock revision mismatch during build #12366
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
base: master
Are you sure you want to change the base?
Conversation
|
@silvekkk I think that could work too (cc @mario-eth ) but the original ticket was meant for foundry.lock and deps installed with |
|
updated ticket name to reflect that. thank you! |
|
cc @beeb |
|
Ideally, this check would be more thorough and do the same consistency check we do in soldeer install (hashing all the files in the dependencies). It would be best if it reused the logic and types from soldeer_core too. |
is this what in your mind? @beeb cc @grandizzy @mario-eth |
|
@silvekkk You reimplemented everything which is not great, because if we ever decide to change something about the lockfile or dependencies folder structure, your code will break. Please add a dependency to You can then use the following: |
|
@beeb Thanks for the feedback! I'vereverted and refactored to use the soldeer_core APIs:
|
|
Thanks for the changes. Although this all feels very LLM generated, I left some comments. |
Yeah, about 50–60% of the later commits were actually done with Claude’s help. I asked it to add comments, clean up the structure, and handle a few checks I probably overlooked, and final review. |
Warns when git revision in soldeer.lock differs from actual dependency revision.
Closes #12357
Not sure If should add test here, let me know if need