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

Refactor Entrypoint.rootDir preparing for workspaces #4179

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Mar 14, 2024

An entrypoint now no longer knows a single rootDir. Instead it knows:

workingDir: the directory that the entrypoint is created around. Typically this is the current working dir.
workspaceRoot The root package of the workspace
workPackage The package closest to the workingDir.

This PR still just has workPackage = workspaceRoot = Package(workingDir) but should be easy to review.
A follow-up will do the actual search in the file system.

@sigurdm
Copy link
Contributor Author

sigurdm commented Mar 14, 2024

This is preparing for #4127

@sigurdm sigurdm merged commit e519de6 into dart-lang:master Mar 15, 2024
21 of 23 checks passed
@sigurdm sigurdm mentioned this pull request Mar 19, 2024
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

Successfully merging this pull request may close these issues.

2 participants