You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we can not add git or path dependencies inside published packages. This creates a lot of additional effort, as all internal dependencies have to be published separately. This may even require additional tooling etc.
A simpler solution will be to allow hosting dependencies inside the parent package. Let's say we create a packages folder at the same level as the lib folder. Then, any package inside this packages folder can be declared as path dependencies inside the parent package without any problem.
An even better solution will be to allow specifying git and path dependencies as internally hosted in pubspec.yaml of the parent package, and then pub will handle everything internally. It can look like this:
So, with these solutions implemented we won't have to waste time handling sub-dependencies and integrating additional tooling, and pub would handle everything in the background.
The text was updated successfully, but these errors were encountered:
Right now we can not add git or path dependencies inside published packages. This creates a lot of additional effort, as all internal dependencies have to be published separately. This may even require additional tooling etc.
A simpler solution will be to allow hosting dependencies inside the parent package. Let's say we create a packages folder at the same level as the lib folder. Then, any package inside this packages folder can be declared as path dependencies inside the parent package without any problem.
An even better solution will be to allow specifying git and path dependencies as internally hosted in pubspec.yaml of the parent package, and then pub will handle everything internally. It can look like this:
So, with these solutions implemented we won't have to waste time handling sub-dependencies and integrating additional tooling, and pub would handle everything in the background.
The text was updated successfully, but these errors were encountered: