Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ AppEngine version, listed here to ease deployment and troubleshooting.
* Upgraded stable Dart analysis SDK to `3.8.3`
* Upgraded stable Flutter analysis SDK to `3.32.8`.
* Upgraded pana to `0.22.22`.
* Note: Tarball-related integrity checks are run in a separate weekly task (`check-tarball-integrity`).

## `20250804t140400-all`
* Bump runtimeVersion to `2025.07.14`.
Expand Down
13 changes: 13 additions & 0 deletions app/lib/package/tarball_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ class TarballStorage {
String getCanonicalBucketAbsoluteObjectName(String package, String version) =>
_canonicalBucket.absoluteObjectName(tarballObjectName(package, version));

/// Get a list of package names in the canonical bucket.
Future<List<String>> listPackagesInCanonicalBucket() async {
final items = await _canonicalBucket.listAllItemsWithRetry(
prefix: 'packages/', delimiter: '-');
final packages = items
.where((i) => i.isDirectory)
.map((i) => i.name)
.map((name) => name.substring(9).split('-').first)
.toSet()
.toList();
return packages;
}

/// Get map from `version` to [SourceObjectInfo] for each version of [package] in
/// canonical bucket.
Future<Map<String, SourceObjectInfo>> listVersionsInCanonicalBucket(
Expand Down
Loading