-
Notifications
You must be signed in to change notification settings - Fork 74
Description
Publishing a package, takes a package out of its context, out of its workspace.
This means if a package has a resolution: workspace
, that resolution is ignored once it is published and the pubspec.yaml
must stand on itself.
This has implications for published CLI tools as well. If a CLI-tool is dart install
ed via hosted, git, or path dependency. Then the user-defines of the workspace are lost.
If the package must stand on itself after publishing, the user-defines must be duplicated in the package pubspec.yaml
.
We will need to somehow communicate this to users.
(Implementation detail: dart install
must ensure it respects these user-defines, even though it makes a helper package and defines that as the root of the resolution. Second implementation detail: dart install
must run the build from the right resolution directory for user-defines, because user-defines may contain relative paths.)
Context:
Metadata
Metadata
Assignees
Labels
Type
Projects
Status