Skip to content

Commit 21429eb

Browse files
authoredOct 24, 2024
Fix tests affected by pkg:args changes (#158)
1 parent e2613e7 commit 21429eb

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed
 

‎analysis_options.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ linter:
3434
- no_adjacent_strings_in_list
3535
- no_runtimeType_toString
3636
- one_member_abstracts
37-
- package_api_docs
3837
- prefer_const_constructors_in_immutables
3938
- prefer_const_declarations
4039
- prefer_const_literals_to_create_immutables

‎build_cli/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
dev_dependencies:
2626
# Args is exported and restricted by `build_cli_annotation`, but tests in this
2727
# package assume the output of features in ^2.0.0
28-
args: ^2.0.0
28+
args: ^2.6.0
2929
build_runner: ^2.4.6
3030
build_verify: ^3.0.0
3131
dart_flutter_team_lints: ^3.0.0

‎build_cli/test/peanut_integration_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ void main() {
5757

5858
group('with invalid args', () {
5959
final items = {
60-
'Cannot negate option "no-help".': ['--no-help'],
61-
'"foo" is not an allowed value for option "mode".': ['--mode', 'foo'],
60+
'Cannot negate option "--no-help".': ['--no-help'],
61+
'"foo" is not an allowed value for option "--mode".': ['--mode', 'foo'],
6262
'The value provided for "max-runtime" – "bob" – was not a number.': [
6363
'--max-runtime',
6464
'bob',

‎build_cli/test/pubviz_integration_test.dart

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ void main() {
1616

1717
group('with invalid args', () {
1818
final items = {
19-
'Could not find an option named "no-help".': ['--no-help'],
20-
'"foo" is not an allowed value for option "format".': ['--format', 'foo'],
19+
'Could not find an option named "--no-help".': ['--no-help'],
20+
'"foo" is not an allowed value for option "--format".': [
21+
'--format',
22+
'foo',
23+
],
2124
'Cannot parse "3.14" into `int` for option "production-port".': [
2225
'--production-port',
2326
'3.14',

‎build_cli_annotations/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 2.1.1-wip
22

3+
- Require `args: ^2.6.0`
34
- Require `sdk: ^3.5.0`
45

56
## 2.1.0

‎build_cli_annotations/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ resolution: workspace
1313

1414
dependencies:
1515
# Limit version range on args – it's exported
16-
args: '>=2.0.0 <3.0.0'
16+
args: ^2.6.0
1717
dart_flutter_team_lints: ^3.0.0
1818
meta: ^1.7.0

0 commit comments

Comments
 (0)