Skip to content

Commit

Permalink
Add "check in pubspec.lock" advice to troubleshooting (#262)
Browse files Browse the repository at this point in the history
* Add "check in pubspec.lock" advice to troubleshooting

* borrow language from dart docs
  • Loading branch information
bryanoltman authored Jul 3, 2024
1 parent 5f8e421 commit 1b0bc4c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/content/docs/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,16 @@ This can be caused by a number of things. The most common causes are:
use caution when publishing patches that include changes to native code from
plugins. In the worst case, these changes may cause your patched app to
crash.**
:::tip
Add your `pubspec.lock` file to version control so you're always aware of
updates to your dependencies.

Versioning your `pubspec.lock` file ensures changes to transitive
dependencies are explicit. Each time the dependencies change due to
`dart pub upgrade` or a change in `pubspec.yaml`, the difference will be
apparent in the lock file.
:::

2. A dependency/plugin produces a different output on every build. This can
happen if the dependency it includes a timestamp indicating when it was
built, for example. This kind of change is usually safe to publish, but you
Expand Down

0 comments on commit 1b0bc4c

Please sign in to comment.