Skip to content

Commit

Permalink
Remove dart pub upgrade --null-safety (#5806)
Browse files Browse the repository at this point in the history
Removing `dart pub upgrade --null-safety`.

After Dart 3.0.0, this is no longer relevant, and the flag has been
removed.
  • Loading branch information
jonasfj authored May 13, 2024
1 parent fccc906 commit 2ab89b3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/content/tools/pub/cmd/pub-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,6 @@ By default, pub precompiles executables
in immediate dependencies (`--precompile`).
To prevent precompilation, use `--no-precompile`.

### `--null-safety`

Gets the packages that
[`dart pub outdated --mode=null-safety`][`dart pub outdated`]
lists as _resolvable_,
ignoring any upper-bound constraint in the `pubspec.yaml` file.
Also updates `pubspec.yaml` with the new constraints.
This command is similar to `--major-versions`.

:::tip
Commit the `pubspec.yaml` file before running this command,
so that you can undo the changes if necessary.
:::

### `--major-versions`

Gets the packages that [`dart pub outdated`][] lists as _resolvable_,
Expand Down

0 comments on commit 2ab89b3

Please sign in to comment.