Skip to content

[Merged by Bors] - feat(ImportGraph): add option to exclude imports from other packages - #6151

Closed
joneugster wants to merge 4 commits into
masterfrom
eugster/graph_for_dependencies
Closed

joneugster wants to merge 4 commits into
masterfrom
eugster/graph_for_dependencies

Conversation

@joneugster

@joneugster joneugster commented Jul 26, 2023 •

Copy link
Copy Markdown
Member

Add an option lake exe graph --to MyProject.XY --noDep which removes all nodes that do not start in MyProject.


Note that currently omitting --to is equivalent to specifying --to Mathlib, so there is no special case needed to handle this.

Happy to get a suggestion for a better name, maybe --exclude-dependencies?

Open in Gitpod

@joneugster joneugster added awaiting-review t-meta Tactics, attributes or user commands labels Jul 26, 2023
Comment thread Mathlib/Lean/Data/NameMap.lean Resolved
Comment thread Mathlib/Lean/Name.lean Resolved
@kim-em

kim-em commented Jul 26, 2023

Copy link
Copy Markdown
Contributor

Could I suggest we make this useful behaviour the default, and instead have a flag --include-deps?

@kim-em kim-em added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Jul 26, 2023
@joneugster joneugster added awaiting-review and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Jul 28, 2023
@joneugster
joneugster requested a review from kim-em August 4, 2023 12:25
Comment thread Mathlib/Lean/Data/NameMap.lean Resolved
@kim-em

kim-em commented Aug 6, 2023

Copy link
Copy Markdown
Contributor

bors d+

@bors

bors Bot commented Aug 6, 2023

Copy link
Copy Markdown

✌️ joneugster can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions Bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Aug 6, 2023
@joneugster

Copy link
Copy Markdown
Member Author

bors r+

bors Bot pushed a commit that referenced this pull request Aug 6, 2023
…6151)

Add an option `lake exe graph --to MyProject.XY --noDep` which removes all nodes that do not start in `MyProject`.
@bors

bors Bot commented Aug 6, 2023

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors Bot changed the title feat(ImportGraph): add option to exclude imports from other packages [Merged by Bors] - feat(ImportGraph): add option to exclude imports from other packages Aug 6, 2023
@bors bors Bot closed this Aug 6, 2023
@bors
bors Bot deleted the eugster/graph_for_dependencies branch August 6, 2023 17:20
kim-em pushed a commit that referenced this pull request Aug 14, 2023
…6151)

Add an option `lake exe graph --to MyProject.XY --noDep` which removes all nodes that do not start in `MyProject`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants