Repository navigation
Conversation
PR summary bcf5f82b5cImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
Contributor
|
Pull request successfully merged into master. Build succeeded: |
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Oct 21, 2026
This PR modifies the way the header linter finds the library root from the current module. Instead of assuming that the current working directory contains the root, we peel off components from the current filename and match them against the current module name until we reach the root. We also adjust the directory dependency linter to take in a `srcDir` when locating `Mathlib.Init` and `scripts/forbiddenDirs.json`, which we provide as the parent of this filepath. This is both more principled and enables us to apply header linter suggestions from skimmer, which is started from `scripts/`. It also has the effect of (correctly) running these linters when building mathlib as an upstream dependency, just as we run mathlib's other linters in the same circumstance. Note that the `scripts/` folder is distributed along with the source files, so we are still able to locate `scripts/forbiddenDirs.json` successfully. (This was tested locally with a minimal downstream project.) This was used in conjunction with #44507 to create #45071. (This PR also adjusts the style of some nearby but unrelated `MessageData` handling.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR reformats imports to be in line with the style convention in preparation for #44507.
This was created with
scripts/runSkimmer.shafter temporarily incorporating #45061 into #44507.