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

Support Pub Workspaces #138

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Levi-Lesches
Copy link

@Levi-Lesches Levi-Lesches commented Dec 23, 2024

Motivation

Fixes #137 by supporting use in a mono-repo

Changes

In a regular package: nothing
In a sub-package of a workspace: nothing
In a workspace: instead of failing, recursively run itself on all sub-packages

I did remove the error condition that dart pub get must be run before running the tool, since that was throwing errors for workspaces, and I did not see a use for it (the pubspec.lock or .dart_tool files are never checked, only the code and pubspec.yaml).

Testing/QA Instructions

Looking into adding unit tests now, but basically, create a workspace and try running the tool in there.

For now, I had to add a dependency override on pubspec_parse until dart-lang/tools#1948 is merged. For some reason that's affecting the tests, so many of them are failing as they can't override the package while executing.

@evanweible-wf for review

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

Successfully merging this pull request may close these issues.

Pub workspaces
2 participants