Follow up to `--unlock-transitive` (#4405)
diff --git a/lib/src/command/upgrade.dart b/lib/src/command/upgrade.dart
index c0092b2..edd7eb6 100644
--- a/lib/src/command/upgrade.dart
+++ b/lib/src/command/upgrade.dart
@@ -74,6 +74,7 @@
'unlock-transitive',
help: 'Also upgrades the transitive dependencies '
'of the listed [dependencies]',
+ negatable: false,
);
argParser.addFlag(
diff --git a/pubspec.lock b/pubspec.lock
index 5051dfb..e20fe4d 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -5,23 +5,23 @@
dependency: transitive
description:
name: _fe_analyzer_shared
- sha256: "45cfa8471b89fb6643fe9bf51bd7931a76b8f5ec2d65de4fb176dba8d4f22c77"
+ sha256: f6dbf021f4b214d85c79822912c5fcd142a2c4869f01222ad371bc51f9f1c356
url: "https://pub.dev"
source: hosted
- version: "73.0.0"
+ version: "74.0.0"
_macros:
dependency: transitive
description: dart
source: sdk
- version: "0.3.2"
+ version: "0.3.3"
analyzer:
dependency: "direct main"
description:
name: analyzer
- sha256: "4959fec185fe70cce007c57e9ab6983101dbe593d2bf8bbfb4453aaec0cf470a"
+ sha256: f7e8caf82f2d3190881d81012606effdf8a38e6c1ab9e30947149733065f817c
url: "https://pub.dev"
source: hosted
- version: "6.8.0"
+ version: "6.9.0"
args:
dependency: "direct main"
description:
@@ -194,10 +194,10 @@
dependency: transitive
description:
name: macros
- sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536"
+ sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656"
url: "https://pub.dev"
source: hosted
- version: "0.1.2-main.4"
+ version: "0.1.3-main.0"
matcher:
dependency: transitive
description:
diff --git a/test/testdata/goldens/help_test/pub upgrade --help.txt b/test/testdata/goldens/help_test/pub upgrade --help.txt
index aea028b..ade5a8d 100644
--- a/test/testdata/goldens/help_test/pub upgrade --help.txt
+++ b/test/testdata/goldens/help_test/pub upgrade --help.txt
@@ -5,14 +5,14 @@
Upgrade the current package's dependencies to latest versions.
Usage: pub upgrade [dependencies...]
--h, --help Print this usage information.
- --[no-]offline Use cached packages instead of accessing the network.
--n, --dry-run Report what dependencies would change but don't change any.
- --[no-]precompile Precompile executables in immediate dependencies.
- --tighten Updates lower bounds in pubspec.yaml to match the resolved version.
- --[no-]transitive Also upgrades the transitive dependencies of the listed [dependencies]
- --major-versions Upgrades packages to their latest resolvable versions, and updates pubspec.yaml.
--C, --directory=<dir> Run this in the directory <dir>.
+-h, --help Print this usage information.
+ --[no-]offline Use cached packages instead of accessing the network.
+-n, --dry-run Report what dependencies would change but don't change any.
+ --[no-]precompile Precompile executables in immediate dependencies.
+ --tighten Updates lower bounds in pubspec.yaml to match the resolved version.
+ --unlock-transitive Also upgrades the transitive dependencies of the listed [dependencies]
+ --major-versions Upgrades packages to their latest resolvable versions, and updates pubspec.yaml.
+-C, --directory=<dir> Run this in the directory <dir>.
Run "pub help" to see global options.
See https://dart.dev/tools/pub/cmd/pub-upgrade for detailed documentation.
diff --git a/test/upgrade/upgrade_transitive_test.dart b/test/upgrade/upgrade_transitive_test.dart
index 410b273..864972b 100644
--- a/test/upgrade/upgrade_transitive_test.dart
+++ b/test/upgrade/upgrade_transitive_test.dart
@@ -29,7 +29,7 @@
args: ['foo'],
output: allOf(
contains('> foo 1.5.0'),
- isNot(contains('bar')),
+ isNot(contains('> bar')),
),
);
});