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
When using a multi-repo approach and the new workspace concept, is it possible to easily test with locally resolved packages as well as published ones? It might make sense to want to know if a package works locally while developing, but then also checking if it still works with the published versions of the dependencies, as there is no multi-package-atomic publishing.
Currently, the workaround is running a tool to comment out lines with path: and instead using published versions, which is very hacky and leads to less adoption of testing this in the ecosystem.
The text was updated successfully, but these errors were encountered:
I think we want to be able to tell a story here eventually.
For now I think the recommendation will be that to test a package's resolution in isolation you should manually take it out of the workspace (by updating the pubspec.yaml to remove the resolution: workspace line), resolve (downgrade, upgrade or whatever) and run tests.
This is not ideal, as it
requires manual/scripted editing of pubspec.yaml
leaves the workspace in a messy state.
But it is not that hard to set up. And with git it is not hard to restore back to the working state.
Note with workspaces the packages inside the workspace will always resolve to each other.
You don't need to bother with overrides/path dependencies, and when you take it out of the workspace it will resolve to the hosted version of the dependency.
Leaving this issue open for picking it up eventually.
When using a multi-repo approach and the new workspace concept, is it possible to easily test with locally resolved packages as well as published ones? It might make sense to want to know if a package works locally while developing, but then also checking if it still works with the published versions of the dependencies, as there is no multi-package-atomic publishing.
Currently, the workaround is running a tool to comment out lines with
path:
and instead using published versions, which is very hacky and leads to less adoption of testing this in the ecosystem.The text was updated successfully, but these errors were encountered: