Skip to content

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

Closed
joneugster wants to merge 4 commits intomasterfrom
eugster/graph_for_dependencies
Closed

[Merged by Bors] - feat(ImportGraph): add option to exclude imports from other packages#6151
joneugster wants to merge 4 commits intomasterfrom
eugster/graph_for_dependencies

Conversation

@joneugster
Copy link
Copy Markdown
Contributor

@joneugster joneugster commented Jul 26, 2023

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
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Jul 26, 2023

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

@kim-em kim-em added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Jul 26, 2023
@joneugster joneugster added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Jul 28, 2023
@joneugster joneugster requested a review from kim-em August 4, 2023 12:25
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Aug 6, 2023

bors d+

@bors
Copy link
Copy Markdown

bors bot commented Aug 6, 2023

✌️ 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
Co-authored-by: Scott Morrison <scott@tqft.net>
@joneugster
Copy link
Copy Markdown
Contributor 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
Copy link
Copy Markdown

bors bot commented Aug 6, 2023

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