Skip to content

Commit

Permalink
Update pub-lish.md (#5803)
Browse files Browse the repository at this point in the history
Documentation for `dart pub publish --skip-validation`.
  • Loading branch information
jonasfj authored May 16, 2024
1 parent db2367d commit 379a1b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/content/tools/pub/cmd/pub-lish.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,14 @@ In the event of warnings, your package *is* uploaded.
To ensure that your package has no warnings before uploading,
either don't use `--force`, or use `--dry-run` first.

### `--skip-validation`

Publishes without going through the client-side validation process or resolving dependencies.
This is useful for advanced users who knows why the validation fails and wishes to side step a particularly issues.

**Example:** When publishing to pub.dev it may take a few minutes for a newly published package to become available.
Hence, if you are publishing two dependent packages, where the second depends on the first.
You can either wait a few minutes in between publishing the first and the second, or use `--skip-validation`
to publish the second package immediately, by side-stepping client-side valiation.

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

0 comments on commit 379a1b7

Please sign in to comment.