Skip to content

Commit

Permalink
Upgrade tar dependency, CI and end2end test versions. (#1250)
Browse files Browse the repository at this point in the history
* Upgrade dependency, CI and end2end test versions.

* version
  • Loading branch information
isoos authored Aug 28, 2023
1 parent 583416e commit 13f114b
Show file tree
Hide file tree
Showing 23 changed files with 126 additions and 125 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.0.0]
sdk: [3.1.0]
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
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.0.0]
flutter: [3.10.0]
sdk: [3.1.0]
flutter: [3.13.1]
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
with:
sdk: '3.1.0-94.0.dev' # TODO: switch back to rolling 'dev' channel after it gets updated.
sdk: '3.2.0-94.0.dev' # TODO: switch back to rolling 'dev' channel after it gets updated.
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
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.21.37

- Upgraded `package:tar` to `1.0.0`.

## 0.21.36

- Always use `dart format` instead of `flutter format`.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pana
description: PAckage aNAlyzer - produce a report summarizing the health and quality of a Dart package.
version: 0.21.36
version: 0.21.37-dev
repository: https://github.com/dart-lang/pana
topics:
- tool
Expand All @@ -26,7 +26,7 @@ dependencies:
pub_semver: ^2.0.0
pubspec_parse: ^1.2.2
source_span: ^1.7.0
tar: ^0.5.4
tar: ^1.0.0
yaml: ^3.0.0
safe_url_check: ^1.0.0
retry: ^3.0.1
Expand Down
6 changes: 3 additions & 3 deletions test/end2end_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,16 @@ void main() {
verifyPackage('dnd', '2.0.1');

// flutter-only package
verifyPackage('url_launcher', '6.1.2');
verifyPackage('url_launcher', '6.1.12');

// single-platform Flutter plugin without Dart files or assets
verifyPackage('nsd_android', '1.2.0');
verifyPackage('nsd_android', '1.2.2');

// binary-only package (without `platforms:` in pubspec)
verifyPackage('onepub', '1.1.0');

// multi-level symlink
verifyPackage('audio_service', '0.18.4');
verifyPackage('audio_service', '0.18.10');

// mime_type 0.3.2 has no recognized LICENSE file
verifyPackage('mime_type', '0.3.2');
Expand Down
2 changes: 1 addition & 1 deletion test/goldens/end2end/__timestamp.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023-05-12T12:55:25.249916Z
2023-08-25T14:21:56.544527Z
2 changes: 1 addition & 1 deletion test/goldens/end2end/async-2.11.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"grantedPoints": 20,
"maxPoints": 20,
"status": "passed",
"summary": "### [*] 10/10 points: All of the package dependencies are supported in the latest version\n\n|Package|Constraint|Compatible|Latest|\n|:-|:-|:-|:-|\n|[`collection`]|`^1.15.0`|1.17.1|1.17.1|\n|[`meta`]|`^1.1.7`|1.9.1|1.9.1|\n\nTo reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`.\n\n[`collection`]: https://pub.dev/packages/collection\n[`meta`]: https://pub.dev/packages/meta\n\n\n### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs\n"
"summary": "### [*] 10/10 points: All of the package dependencies are supported in the latest version\n\n|Package|Constraint|Compatible|Latest|\n|:-|:-|:-|:-|\n|[`collection`]|`^1.15.0`|1.18.0|1.18.0|\n|[`meta`]|`^1.1.7`|1.9.1|1.9.1|\n\nTo reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`.\n\n[`collection`]: https://pub.dev/packages/collection\n[`meta`]: https://pub.dev/packages/meta\n\n\n### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs\n"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion test/goldens/end2end/async-2.11.0.json_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ See [package layout](https://dart.dev/tools/pub/package-layout#examples) guideli

|Package|Constraint|Compatible|Latest|
|:-|:-|:-|:-|
|[`collection`]|`^1.15.0`|1.17.1|1.17.1|
|[`collection`]|`^1.15.0`|1.18.0|1.18.0|
|[`meta`]|`^1.1.7`|1.9.1|1.9.1|

To reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"flutterVersions": {}
},
"packageName": "audio_service",
"packageVersion": "0.18.4",
"packageVersion": "0.18.10",
"pubspec": {
"name": "audio_service",
"description": "Flutter plugin to play audio in the background while the screen is off.",
"version": "0.18.4",
"version": "0.18.10",
"homepage": "https://github.com/ryanheise/audio_service/tree/master/audio_service",
"environment": {
"sdk": ">=2.12.0 <3.0.0",
"flutter": ">=2.0.0"
"sdk": ">=2.14.0 <4.0.0",
"flutter": ">=3.0.0"
},
"dependencies": {
"audio_service_platform_interface": "^0.1.0",
Expand Down Expand Up @@ -99,10 +99,8 @@
"path_provider_linux",
"path_provider_platform_interface",
"path_provider_windows",
"pedantic",
"platform",
"plugin_platform_interface",
"process",
"rxdart",
"sky_engine",
"source_span",
Expand All @@ -114,6 +112,7 @@
"typed_data",
"uuid",
"vector_math",
"web",
"win32",
"xdg_directories"
],
Expand Down Expand Up @@ -162,15 +161,15 @@
"grantedPoints": 40,
"maxPoints": 50,
"status": "partial",
"summary": "### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues\n\nFound 23 issues. Showing the first 2:\n\n<details>\n<summary>\nINFO: 'hashValues' is deprecated and shouldn't be used. Use Object.hash() instead. This feature was deprecated in v3.1.0-0.0.pre.897.\n</summary>\n\n`lib/audio_service.dart:301:23`\n\n```\n ╷\n301 │ int get hashCode => hashValues(\n │ ^^^^^^^^^^\n ╵\n```\n\nTo reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `flutter analyze lib/audio_service.dart`\n</details>\n<details>\n<summary>\nINFO: 'hashList' is deprecated and shouldn't be used. Use Object.hashAll() or Object.hashAllUnordered() instead. This feature was deprecated in v3.1.0-0.0.pre.897.\n</summary>\n\n`lib/audio_service.dart:304:9`\n\n```\n ╷\n304 │ hashList(controls),\n │ ^^^^^^^^\n ╵\n```\n\nTo reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `flutter analyze lib/audio_service.dart`\n</details>"
"summary": "### [~] 40/50 points: code has no errors, warnings, lints, or formatting issues\n\nFound 16 issues. Showing the first 2:\n\n<details>\n<summary>\nINFO: Unclosed instance of 'Sink'.\n</summary>\n\n`lib/audio_service.dart:1943:40`\n\n```\n ╷\n1943 │ final BehaviorSubject<PlaybackState> _playbackState = BehaviorSubject();\n │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ╵\n```\n\nTo reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `flutter analyze lib/audio_service.dart`\n</details>\n<details>\n<summary>\nINFO: Unclosed instance of 'Sink'.\n</summary>\n\n`lib/audio_service.dart:1944:42`\n\n```\n ╷\n1944 │ final BehaviorSubject<List<MediaItem>> _queue = BehaviorSubject();\n │ ^^^^^^^^^^^^^^^^^^^^^^^^^^\n ╵\n```\n\nTo reproduce make sure you are using the [lints_core](https://pub.dev/packages/lints) and run `flutter analyze lib/audio_service.dart`\n</details>"
},
{
"id": "dependency",
"title": "Support up-to-date dependencies",
"grantedPoints": 20,
"maxPoints": 20,
"status": "passed",
"summary": "### [*] 10/10 points: All of the package dependencies are supported in the latest version\n\n|Package|Constraint|Compatible|Latest|\n|:-|:-|:-|:-|\n|[`audio_service_platform_interface`]|`^0.1.0`|0.1.0|0.1.0|\n|[`audio_service_web`]|`^0.1.1`|0.1.1|0.1.1|\n|[`audio_session`]|`^0.1.6+1`|0.1.13|0.1.13|\n|[`clock`]|`^1.1.0`|1.1.1|1.1.1|\n|[`flutter`]|`flutter`|0.0.0|0.0.0|\n|[`flutter_cache_manager`]|`^3.0.1`|3.3.0|3.3.0|\n|[`flutter_web_plugins`]|`flutter`|0.0.0|0.0.0|\n|[`js`]|`^0.6.3`|0.6.7|0.6.7|\n|[`rxdart`]|`>=0.26.0 <0.28.0`|0.27.7|0.27.7|\n\n<details><summary>Transitive dependencies</summary>\n\n|Package|Constraint|Compatible|Latest|\n|:-|:-|:-|:-|\n|[`async`]|-|2.11.0|2.11.0|\n|[`characters`]|-|1.3.0|1.3.0|\n|[`collection`]|-|1.17.1|1.17.1|\n|[`crypto`]|-|3.0.3|3.0.3|\n|[`ffi`]|-|2.0.2|2.0.2|\n|[`file`]|-|6.1.4|6.1.4|\n|[`http`]|-|0.13.6|0.13.6|\n|[`http_parser`]|-|4.0.2|4.0.2|\n|[`material_color_utilities`]|-|0.2.0|0.5.0|\n|[`meta`]|-|1.9.1|1.9.1|\n|[`path`]|-|1.8.3|1.8.3|\n|[`path_provider`]|-|2.0.15|2.0.15|\n|[`path_provider_android`]|-|2.0.27|2.0.27|\n|[`path_provider_foundation`]|-|2.2.3|2.2.3|\n|[`path_provider_linux`]|-|2.1.10|2.1.10|\n|[`path_provider_platform_interface`]|-|2.0.6|2.0.6|\n|[`path_provider_windows`]|-|2.1.6|2.1.6|\n|[`pedantic`]|-|1.11.1|1.11.1|\n|[`platform`]|-|3.1.0|3.1.0|\n|[`plugin_platform_interface`]|-|2.1.4|2.1.4|\n|[`process`]|-|4.2.4|4.2.4|\n|[`sky_engine`]|-|0.0.99|0.0.99|\n|[`source_span`]|-|1.10.0|1.10.0|\n|[`sqflite`]|-|2.2.8+2|2.2.8+2|\n|[`sqflite_common`]|-|2.4.5|2.4.5|\n|[`string_scanner`]|-|1.2.0|1.2.0|\n|[`synchronized`]|-|3.1.0|3.1.0|\n|[`term_glyph`]|-|1.2.1|1.2.1|\n|[`typed_data`]|-|1.3.2|1.3.2|\n|[`uuid`]|-|3.0.7|3.0.7|\n|[`vector_math`]|-|2.1.4|2.1.4|\n|[`win32`]|-|4.1.4|5.0.0|\n|[`xdg_directories`]|-|1.0.0|1.0.0|\n</details>\n\nTo reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`.\n\n[`audio_service_platform_interface`]: https://pub.dev/packages/audio_service_platform_interface\n[`audio_service_web`]: https://pub.dev/packages/audio_service_web\n[`audio_session`]: https://pub.dev/packages/audio_session\n[`clock`]: https://pub.dev/packages/clock\n[`flutter`]: https://pub.dev/packages/flutter\n[`flutter_cache_manager`]: https://pub.dev/packages/flutter_cache_manager\n[`flutter_web_plugins`]: https://pub.dev/packages/flutter_web_plugins\n[`js`]: https://pub.dev/packages/js\n[`rxdart`]: https://pub.dev/packages/rxdart\n[`async`]: https://pub.dev/packages/async\n[`characters`]: https://pub.dev/packages/characters\n[`collection`]: https://pub.dev/packages/collection\n[`crypto`]: https://pub.dev/packages/crypto\n[`ffi`]: https://pub.dev/packages/ffi\n[`file`]: https://pub.dev/packages/file\n[`http`]: https://pub.dev/packages/http\n[`http_parser`]: https://pub.dev/packages/http_parser\n[`material_color_utilities`]: https://pub.dev/packages/material_color_utilities\n[`meta`]: https://pub.dev/packages/meta\n[`path`]: https://pub.dev/packages/path\n[`path_provider`]: https://pub.dev/packages/path_provider\n[`path_provider_android`]: https://pub.dev/packages/path_provider_android\n[`path_provider_foundation`]: https://pub.dev/packages/path_provider_foundation\n[`path_provider_linux`]: https://pub.dev/packages/path_provider_linux\n[`path_provider_platform_interface`]: https://pub.dev/packages/path_provider_platform_interface\n[`path_provider_windows`]: https://pub.dev/packages/path_provider_windows\n[`pedantic`]: https://pub.dev/packages/pedantic\n[`platform`]: https://pub.dev/packages/platform\n[`plugin_platform_interface`]: https://pub.dev/packages/plugin_platform_interface\n[`process`]: https://pub.dev/packages/process\n[`sky_engine`]: https://pub.dev/packages/sky_engine\n[`source_span`]: https://pub.dev/packages/source_span\n[`sqflite`]: https://pub.dev/packages/sqflite\n[`sqflite_common`]: https://pub.dev/packages/sqflite_common\n[`string_scanner`]: https://pub.dev/packages/string_scanner\n[`synchronized`]: https://pub.dev/packages/synchronized\n[`term_glyph`]: https://pub.dev/packages/term_glyph\n[`typed_data`]: https://pub.dev/packages/typed_data\n[`uuid`]: https://pub.dev/packages/uuid\n[`vector_math`]: https://pub.dev/packages/vector_math\n[`win32`]: https://pub.dev/packages/win32\n[`xdg_directories`]: https://pub.dev/packages/xdg_directories\n\n\n### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs\n"
"summary": "### [*] 10/10 points: All of the package dependencies are supported in the latest version\n\n|Package|Constraint|Compatible|Latest|\n|:-|:-|:-|:-|\n|[`audio_service_platform_interface`]|`^0.1.0`|0.1.0|0.1.0|\n|[`audio_service_web`]|`^0.1.1`|0.1.1|0.1.1|\n|[`audio_session`]|`^0.1.6+1`|0.1.16|0.1.16|\n|[`clock`]|`^1.1.0`|1.1.1|1.1.1|\n|[`flutter`]|`flutter`|0.0.0|0.0.0|\n|[`flutter_cache_manager`]|`^3.0.1`|3.3.1|3.3.1|\n|[`flutter_web_plugins`]|`flutter`|0.0.0|0.0.0|\n|[`js`]|`^0.6.3`|0.6.7|0.6.7|\n|[`rxdart`]|`>=0.26.0 <0.28.0`|0.27.7|0.27.7|\n\n<details><summary>Transitive dependencies</summary>\n\n|Package|Constraint|Compatible|Latest|\n|:-|:-|:-|:-|\n|[`async`]|-|2.11.0|2.11.0|\n|[`characters`]|-|1.3.0|1.3.0|\n|[`collection`]|-|1.17.2|1.18.0|\n|[`crypto`]|-|3.0.3|3.0.3|\n|[`ffi`]|-|2.1.0|2.1.0|\n|[`file`]|-|7.0.0|7.0.0|\n|[`http`]|-|1.1.0|1.1.0|\n|[`http_parser`]|-|4.0.2|4.0.2|\n|[`material_color_utilities`]|-|0.5.0|0.8.0|\n|[`meta`]|-|1.9.1|1.9.1|\n|[`path`]|-|1.8.3|1.8.3|\n|[`path_provider`]|-|2.1.0|2.1.0|\n|[`path_provider_android`]|-|2.1.0|2.1.0|\n|[`path_provider_foundation`]|-|2.3.0|2.3.0|\n|[`path_provider_linux`]|-|2.2.0|2.2.0|\n|[`path_provider_platform_interface`]|-|2.1.0|2.1.0|\n|[`path_provider_windows`]|-|2.2.0|2.2.0|\n|[`platform`]|-|3.1.1|3.1.1|\n|[`plugin_platform_interface`]|-|2.1.5|2.1.5|\n|[`sky_engine`]|-|0.0.99|0.0.99|\n|[`source_span`]|-|1.10.0|1.10.0|\n|[`sqflite`]|-|2.3.0|2.3.0|\n|[`sqflite_common`]|-|2.5.0|2.5.0|\n|[`string_scanner`]|-|1.2.0|1.2.0|\n|[`synchronized`]|-|3.1.0|3.1.0|\n|[`term_glyph`]|-|1.2.1|1.2.1|\n|[`typed_data`]|-|1.3.2|1.3.2|\n|[`uuid`]|-|3.0.7|3.0.7|\n|[`vector_math`]|-|2.1.4|2.1.4|\n|[`web`]|-|0.1.4-beta|0.1.4-beta|\n|[`win32`]|-|5.0.7|5.0.7|\n|[`xdg_directories`]|-|1.0.2|1.0.2|\n</details>\n\nTo reproduce run `dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides`.\n\n[`audio_service_platform_interface`]: https://pub.dev/packages/audio_service_platform_interface\n[`audio_service_web`]: https://pub.dev/packages/audio_service_web\n[`audio_session`]: https://pub.dev/packages/audio_session\n[`clock`]: https://pub.dev/packages/clock\n[`flutter`]: https://pub.dev/packages/flutter\n[`flutter_cache_manager`]: https://pub.dev/packages/flutter_cache_manager\n[`flutter_web_plugins`]: https://pub.dev/packages/flutter_web_plugins\n[`js`]: https://pub.dev/packages/js\n[`rxdart`]: https://pub.dev/packages/rxdart\n[`async`]: https://pub.dev/packages/async\n[`characters`]: https://pub.dev/packages/characters\n[`collection`]: https://pub.dev/packages/collection\n[`crypto`]: https://pub.dev/packages/crypto\n[`ffi`]: https://pub.dev/packages/ffi\n[`file`]: https://pub.dev/packages/file\n[`http`]: https://pub.dev/packages/http\n[`http_parser`]: https://pub.dev/packages/http_parser\n[`material_color_utilities`]: https://pub.dev/packages/material_color_utilities\n[`meta`]: https://pub.dev/packages/meta\n[`path`]: https://pub.dev/packages/path\n[`path_provider`]: https://pub.dev/packages/path_provider\n[`path_provider_android`]: https://pub.dev/packages/path_provider_android\n[`path_provider_foundation`]: https://pub.dev/packages/path_provider_foundation\n[`path_provider_linux`]: https://pub.dev/packages/path_provider_linux\n[`path_provider_platform_interface`]: https://pub.dev/packages/path_provider_platform_interface\n[`path_provider_windows`]: https://pub.dev/packages/path_provider_windows\n[`platform`]: https://pub.dev/packages/platform\n[`plugin_platform_interface`]: https://pub.dev/packages/plugin_platform_interface\n[`sky_engine`]: https://pub.dev/packages/sky_engine\n[`source_span`]: https://pub.dev/packages/source_span\n[`sqflite`]: https://pub.dev/packages/sqflite\n[`sqflite_common`]: https://pub.dev/packages/sqflite_common\n[`string_scanner`]: https://pub.dev/packages/string_scanner\n[`synchronized`]: https://pub.dev/packages/synchronized\n[`term_glyph`]: https://pub.dev/packages/term_glyph\n[`typed_data`]: https://pub.dev/packages/typed_data\n[`uuid`]: https://pub.dev/packages/uuid\n[`vector_math`]: https://pub.dev/packages/vector_math\n[`web`]: https://pub.dev/packages/web\n[`win32`]: https://pub.dev/packages/win32\n[`xdg_directories`]: https://pub.dev/packages/xdg_directories\n\n\n### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs\n"
}
]
},
Expand Down
Loading

0 comments on commit 13f114b

Please sign in to comment.