Repository navigation
Conversation
Co-authored-by: grunweg <[email protected]>
…nprover-community/mathlib4 into adomani/deprecated_module_automation
…module_automation
Co-authored-by: grunweg <[email protected]>
…nprover-community/mathlib4 into adomani/deprecated_module_automation
Co-authored-by: grunweg <[email protected]>
…s' of github.com:leanprover-community/mathlib4 into adomani/deprecated_module_automation_calling_out_modules
I updated the PR description, thanks! |
I do not know exactly what the issue is, but the script seems to be using Specifically here I wonder whether |
…o adomani/deprecated_module_automation_calling_out_modules
|
Per Zulip discussion, it seems this will be easier to test once merged. Thanks! |
|
✌️ adomani can now approve this pull request. To approve and merge a pull request, simply reply with |
…o adomani/deprecated_module_automation_calling_out_modules
|
Thank you all for your comments! I am going to merge, so that testing the behaviour of this command will be easier and we can move closer to fully automate deprecation of modules! bors r+ |
This PR is a revised version of #24861. It splits the `#create_deprecated_modules` into two commands: * `#create_deprecated_module path/to/file.lean` that guides you through generating a deprecated file for a file that has been *erased* (so that the deprecated file will import the same files as the erased one); * `#create_deprecated_module path/to/old/file.lean rename_to path/to/renamed/file.lean` that guides you through generating a deprecated file for a file that has been *renamed* (so that the deprecated file will import just the renamed one); * `#find_deleted_files n` that looks at the repository `n` commits ago and returns a `#create_deprecated_module` for each file that existed then and does not exist now. This is integrated with `Try these:` suggestions and is intended as a first step in making this process completely automatic. Each regenerated file consists of either the imports of the deleted file or just imports the renamed file, followed by `deprecated_module (since := "YYYY-MM-DD")`. Co-authored-by: Michael Rothgang <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
This PR is a revised version of leanprover-community#24861. It splits the `#create_deprecated_modules` into two commands: * `#create_deprecated_module path/to/file.lean` that guides you through generating a deprecated file for a file that has been *erased* (so that the deprecated file will import the same files as the erased one); * `#create_deprecated_module path/to/old/file.lean rename_to path/to/renamed/file.lean` that guides you through generating a deprecated file for a file that has been *renamed* (so that the deprecated file will import just the renamed one); * `#find_deleted_files n` that looks at the repository `n` commits ago and returns a `#create_deprecated_module` for each file that existed then and does not exist now. This is integrated with `Try these:` suggestions and is intended as a first step in making this process completely automatic. Each regenerated file consists of either the imports of the deleted file or just imports the renamed file, followed by `deprecated_module (since := "YYYY-MM-DD")`. Co-authored-by: Michael Rothgang <[email protected]>
This PR is a revised version of leanprover-community#24861. It splits the `#create_deprecated_modules` into two commands: * `#create_deprecated_module path/to/file.lean` that guides you through generating a deprecated file for a file that has been *erased* (so that the deprecated file will import the same files as the erased one); * `#create_deprecated_module path/to/old/file.lean rename_to path/to/renamed/file.lean` that guides you through generating a deprecated file for a file that has been *renamed* (so that the deprecated file will import just the renamed one); * `#find_deleted_files n` that looks at the repository `n` commits ago and returns a `#create_deprecated_module` for each file that existed then and does not exist now. This is integrated with `Try these:` suggestions and is intended as a first step in making this process completely automatic. Each regenerated file consists of either the imports of the deleted file or just imports the renamed file, followed by `deprecated_module (since := "YYYY-MM-DD")`. Co-authored-by: Michael Rothgang <[email protected]>
This PR is a revised version of leanprover-community#24861. It splits the `#create_deprecated_modules` into two commands: * `#create_deprecated_module path/to/file.lean` that guides you through generating a deprecated file for a file that has been *erased* (so that the deprecated file will import the same files as the erased one); * `#create_deprecated_module path/to/old/file.lean rename_to path/to/renamed/file.lean` that guides you through generating a deprecated file for a file that has been *renamed* (so that the deprecated file will import just the renamed one); * `#find_deleted_files n` that looks at the repository `n` commits ago and returns a `#create_deprecated_module` for each file that existed then and does not exist now. This is integrated with `Try these:` suggestions and is intended as a first step in making this process completely automatic. Each regenerated file consists of either the imports of the deleted file or just imports the renamed file, followed by `deprecated_module (since := "YYYY-MM-DD")`. Co-authored-by: Michael Rothgang <[email protected]>
This PR is a revised version of #24861. It splits the
#create_deprecated_modulesinto two commands:#create_deprecated_module path/to/file.leanthat guides you through generating a deprecated file for a file that has been erased (so that the deprecated file will import the same files as the erased one);#create_deprecated_module path/to/old/file.lean rename_to path/to/renamed/file.leanthat guides you through generating a deprecated file for a file that has been renamed (so that the deprecated file will import just the renamed one);
#find_deleted_files nthat looks at the repositoryncommits ago and returns a#create_deprecated_modulefor each file that existed then and does not exist now.This is integrated with
Try these:suggestions and is intended as a first step in making this process completely automatic.Each regenerated file consists of either the imports of the deleted file or just imports the renamed file, followed by
deprecated_module (since := "YYYY-MM-DD").Some discussion in #general > deprecated_module @ 💬