Skip to content

Commit aa2ec87

Browse files
authored
Upgrade pana to 0.23.0 (#9028)
1 parent c5dabf8 commit aa2ec87

File tree

11 files changed

+16
-14
lines changed

11 files changed

+16
-14
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ Important changes to data models, configuration, and migrations between each
22
AppEngine version, listed here to ease deployment and troubleshooting.
33

44
## Next Release (replace with git tag when deployed)
5-
* Bump runtimeVersion to `2025.10.21`.
5+
* Bump runtimeVersion to `2025.10.22`.
66
* Upgraded stable Flutter analysis SDK to `3.35.6`.
7+
* Upgraded pana to `0.23.0`.
78

89
## `20251017t101000-all`
910
* Bump runtimeVersion to `2025.10.17`.

app/lib/fake/backend/fake_pana_runner.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Future<Summary> fakePanaSummary({
9999
.where((url) => fakeUrlCheck('funding', url) != null)
100100
.toList(),
101101
contributingUrl: contributingUrl,
102-
licenses: [License(path: '', spdxIdentifier: licenseSpdx)],
102+
licenses: [License(spdxIdentifier: licenseSpdx)],
103103
);
104104
return Summary(
105105
createdAt: clock.now().toUtc(),
@@ -156,7 +156,6 @@ Future<Summary> fakePanaSummary({
156156
],
157157
),
158158
result: result,
159-
licenses: [],
160159
errorMessage: null,
161160
pubspec: null, // will be ignored
162161
);

app/lib/fake/backend/fake_pub_worker.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,6 @@ Summary _emptySummary(String package, String version) {
337337
tags: null,
338338
report: null,
339339
result: null,
340-
licenseFile: null,
341-
licenses: null,
342340
errorMessage: null,
343341
pubspec: null, // will be ignored
344342
);

app/lib/frontend/templates/views/pkg/info_box.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ d.Node packageInfoBoxNode({
4343
if (data.versionInfo.hasLicense) {
4444
final licenses = data.scoreCard.panaReport?.licenses ?? <License>[];
4545
if (licenses.isEmpty) {
46-
licenses.add(License(path: 'LICENSE', spdxIdentifier: 'unknown'));
46+
licenses.add(License(spdxIdentifier: 'unknown'));
4747
}
4848
license = _licenseNode(
4949
licenses: licenses,

app/lib/scorecard/models.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class PanaReport {
140140
}.toList(),
141141
allDependencies: summary?.allDependencies,
142142
// ignore: deprecated_member_use
143-
licenses: summary?.result?.licenses ?? summary?.licenses,
143+
licenses: summary?.result?.licenses,
144144
report: summary?.report,
145145
result: summary?.result,
146146
urlProblems: summary?.urlProblems,

app/lib/shared/versions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final RegExp runtimeVersionPattern = RegExp(r'^\d{4}\.\d{2}\.\d{2}$');
2424
/// when the version switch happens.
2525
const _acceptedRuntimeVersions = <String>[
2626
// The current [runtimeVersion].
27-
'2025.10.21',
27+
'2025.10.22',
2828
// Fallback runtime versions.
2929
'2025.10.17',
3030
'2025.10.10',

app/lib/tool/test_profile/resolver.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ Future<List<ResolvedVersion>> resolveVersions(
6464
),
6565
);
6666

67-
final pr = await toolEnv.runUpgrade(dummyDir.path, false);
67+
final pr = await toolEnv.runPub(
68+
dummyDir.path,
69+
command: 'upgrade',
70+
usesFlutter: false,
71+
);
6872
if (pr.exitCode != 0) {
6973
throw Exception(
7074
'dart pub get on `${package.name} $version` exited with ${pr.exitCode}.\n${pr.stderr}',

app/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies:
4646
watcher: ^1.0.0
4747
yaml: ^3.1.0
4848
# pana version to be pinned
49-
pana: '0.22.24'
49+
pana: '0.23.0'
5050
# 3rd-party packages with pinned versions
5151
mailer: '6.5.0'
5252
postgres: '3.5.8'

app/test/dartdoc/dartdoc_page_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void main() {
7070
dartdocVersion: dartdocVersion,
7171
pubCacheDir: pubCacheDir,
7272
);
73-
await toolEnv.runUpgrade(pkgDir, false);
73+
await toolEnv.runPub(pkgDir, command: 'get', usesFlutter: false);
7474
});
7575

7676
tearDownAll(() async {

pkg/pub_worker/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
appengine: ^0.13.6
1111
json_annotation: ^4.3.0
1212
jsontool: ^2.0.0
13-
pana: ^0.22.24
13+
pana: ^0.23.0
1414
path: ^1.8.0
1515
lints: ^6.0.0 # required for pana
1616
meta: ^1.7.0

0 commit comments

Comments
 (0)