Skip to content

Commit

Permalink
Update src/content/guides/packages.md
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Finnemann Jensen <[email protected]>
  • Loading branch information
sigurdm and jonasfj authored Oct 7, 2024
1 parent fcfdb23 commit 4506906
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/content/guides/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,16 @@ There are some downsides to this setup:
Pub allows you to organize your repository as a "workspace" using a single
shared resolution for all your packages.

:::note
Using a single shared dependency resolution for all your packages increases
the risks of dependency conflicts. Because Dart does not allow multiple versions
of the same package.

If the packages are going to be used together (as is commonly the case),
this is often a feature, as it forces you to resolve incompatibilities between your
packages when the arise, rather then when you start using the packages.
:::

To create a workspace:

* Add a `pubspec.yaml` at the repository root directory with a `workspace` entry
Expand Down

0 comments on commit 4506906

Please sign in to comment.