-
Notifications
You must be signed in to change notification settings - Fork 254
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
Do not allow building libraries while silently not verifing included files #5406
base: master
Are you sure you want to change the base?
Do not allow building libraries while silently not verifing included files #5406
Conversation
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.
Heavily in favour of making this change in general, but I think just switching the default, although safe (since it's just verifying more code than before) could make the ad-hoc build systems for existing Dafny projects grind to a crawl, if they are relying on the fact that includes aren't verified and forking many processes to verify files in parallel.
I think the dafny migrate
command idea is an excellent solution and we should build that before making this change. Will add more ideas to that issue.
Good callout |
One other thought for when we come back to this: the option name should be more explicit that it's only skipping verification somehow - |
I like it. I thought of |
Fixes #4762 (actually, it's only truly fixed until we remove
--verify-included files
, but our migration policy prevents doing this until we do another release. IMO the migration policy of always requiring a Dafny codebase to be forward compatible with an upcoming release is quite harmful to effective development of Dafny. We should drive towards being able to drop that. I'm guessing we can do that once we add adafny migrate
that automatically updates a Dafny codebase to work with an upcoming version. Creates this ticket for that: #5407)Description
--verify-included-files
is replaced by--skip-included-files
. For backwards compatibility purposes,--verify-included-files
is still kept, although hidden and marked as deprecated.How has this been tested?
Include.dfy
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.