Skip to content

Commit

Permalink
Use Dart 3.2 language version
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Feb 10, 2024
1 parent 7dcb60d commit 013f531
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sdk: [3.2.0]
sdk: [3.2.6]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
Expand Down Expand Up @@ -47,8 +47,8 @@ jobs:
# TODO(sigurdm): our end2end test creates longer filenames than we can
# handle on windows. See https://github.com/dart-lang/sdk/issues/42416
os: [ubuntu-latest, macos-latest]
sdk: [3.2.0]
flutter: [3.16.0]
sdk: [3.2.6]
flutter: [3.16.9]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- uses: dart-lang/setup-dart@fedb1266e91cf51be2fdb382869461a434b920a3
with:
sdk: '3.3.0-120.0.dev' # TODO: switch back to rolling 'dev' channel after it gets updated.
sdk: '3.3.0-279.3.beta' # TODO: switch back to rolling 'dev' channel after it gets updated.
- uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b
with:
# flutter-version: '3.4.0-34.1.pre'
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.22.1-wip

- Require Dart 3.2.0 or later to run `pana`.

## 0.22.0

- `ToolEnvironment`:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/sdk_env.dart
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ class ToolEnvironment {
'global',
'activate',
'dartdoc',
_dartdocVersion!,
_dartdocVersion,
],
environment: {
..._dartSdk.environment,
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: pana
description: PAckage aNAlyzer - produce a report summarizing the health and quality of a Dart package.
version: 0.22.0
version: 0.22.1-wip
repository: https://github.com/dart-lang/pana
topics:
- tool

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: ^3.2.0

dependencies:
analyzer: '>=5.0.0 <7.0.0'
Expand Down
4 changes: 2 additions & 2 deletions test/goldens/end2end/skiplist-0.1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"grantedPoints": 0,
"maxPoints": 50,
"status": "failed",
"summary": "### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues\n\n* Running `dart pub outdated` failed with the following output:\n\n```\nThe lower bound of \"sdk: '>=1.0.0 <=3.2.0'\" must be 2.12.0'\nor higher to enable null safety.\n```\n"
"summary": "### [x] 0/50 points: code has no errors, warnings, lints, or formatting issues\n\n* Running `dart pub outdated` failed with the following output:\n\n```\nThe lower bound of \"sdk: '>=1.0.0 <=3.2.6'\" must be 2.12.0'\nor higher to enable null safety.\n```\n"
},
{
"id": "dependency",
Expand All @@ -98,5 +98,5 @@
"maxPoints": 130
},
"urlProblems": [],
"errorMessage": "Running `dart pub outdated` failed with the following output:\n\n```\nThe lower bound of \"sdk: '>=1.0.0 <=3.2.0'\" must be 2.12.0'\nor higher to enable null safety.\n```"
"errorMessage": "Running `dart pub outdated` failed with the following output:\n\n```\nThe lower bound of \"sdk: '>=1.0.0 <=3.2.6'\" must be 2.12.0'\nor higher to enable null safety.\n```"
}
2 changes: 1 addition & 1 deletion test/goldens/end2end/skiplist-0.1.0.json_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Run `dart pub get` for more information.
* Running `dart pub outdated` failed with the following output:

```
The lower bound of "sdk: '>=1.0.0 <=3.2.0'" must be 2.12.0'
The lower bound of "sdk: '>=1.0.0 <=3.2.6'" must be 2.12.0'
or higher to enable null safety.
```

Expand Down

0 comments on commit 013f531

Please sign in to comment.