Skip to content
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

Idea: A tool to generate "Report of connectivity level between modules" #53

Open
DmT021 opened this issue Aug 13, 2023 · 2 comments
Open

Comments

@DmT021
Copy link

DmT021 commented Aug 13, 2023

There was a pitch recently on the swift forum about introduction new visibility levels on imports (ex @_implementationOnly imports).
internal and lower levels of imports are useful to reduce number of modules to be rebuild in incremental builds.
But there is no way suggested in the proposal to automate or assist with import visibility lowering.
However it was suggested that the swift index store could be used to get the information about dependencies between entities in different modules. So with the index store it's possible to build a report of connectivity level between modules, which in turn will be a valuable tool to plan work for specifying import visibilities.

@keith
Copy link
Member

keith commented Aug 14, 2023

Here's an example of that idea #43 although it would require some tweaking to be production ready.

@keith
Copy link
Member

keith commented Aug 14, 2023

I think one thing we've discovered with this tool is it seems sufficiently difficult to ever be 100% correct, but for this case maybe that's ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants