Skip to content

Commit a61a141

Browse files
committed
Refer to package guide from command reference section about --enforce-lockfile
1 parent 6014374 commit a61a141

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/content/tools/pub/cmd/pub-get.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,15 @@ To prevent precompilation, use `--no-precompile`.
150150

151151
### `--enforce-lockfile`
152152

153-
Refuses to resolve dependencies with an error message
154-
if the `pubspec.lock` file deviates or is missing.
153+
Enforce the resolution of the current `pubspec.lock`.
155154

155+
Fail the `pub get` with an error message if the `pubspec.lock` does not exactly
156+
specify a valid resolution of `pubspec.yaml` or if any content hash of a hosted
157+
package has changed.
158+
159+
Useful for CI or deploying to production.
160+
161+
See this [section](/guides/packages#get-dependencies-for-production) for more
162+
details.
156163

157164
{% render 'pub-problems.md' %}

0 commit comments

Comments
 (0)