Skip to content

Migrate to latest pkg:google_cloud apis#715

Merged
kevmoo merged 14 commits intomasterfrom
move_auth_things
Feb 17, 2026
Merged

Migrate to latest pkg:google_cloud apis#715
kevmoo merged 14 commits intomasterfrom
move_auth_things

Conversation

@kevmoo
Copy link
Collaborator

@kevmoo kevmoo commented Feb 17, 2026

No description provided.

 Summary of Improvements

  google_cloud
   * Public `getMetadataValue`: Exposed getMetadataValue in package:google_cloud/general.dart. This allows other packages (like googleapis_auth) to utilize the process-wide metadata caching.
   * Analyzer Clean: Fixed unused and unnecessary import lints.
   * Refined Tests: Verified all tests pass with the newly public API.

  googleapis_auth
   * Unified Caching: Updated MetadataServerAuthorizationFlow to use getMetadataValue from google_cloud. This enables process-wide caching of service account scopes, reducing redundant metadata server requests.
   * Modernized Syntax:
       * Adopted pattern matching in utils.dart (parseAccessToken) and adc_utils.dart (fromApplicationsCredentialsFile) for more concise and idiomatic JSON parsing.
       * Utilized null-aware map entries (? syntax) in IAMSigner.
   * Test Enhancements:
       * Integrated `package:test_descriptor` for Application Default Credentials (ADC) tests, replacing manual temporary file management.
       * Fixed IAMSigner tests to correctly handle MetadataServerException (updating expectations and documentation).
       * Added refresh support to MetadataServerAuthorizationFlow.run() to allow tests (and users) to bypass the metadata cache when necessary.
   * Health Check: Both packages are now fully analyzer clean and pass all tests.

  The path dependency override in googleapis_auth/pubspec.yaml correctly points to your local google_cloud changes.
@github-actions
Copy link

github-actions bot commented Feb 17, 2026

PR Health

Breaking changes ✔️
Package Change Current Version New Version Needed Version Looking good?
googleapis_auth Breaking 2.0.0 2.1.0-wip 2.1.0-wip ✔️

This check can be disabled by tagging the PR with skip-breaking-check.

Unused Dependencies ✔️
Package Status
googleapis_auth ✔️ All dependencies utilized correctly.

For details on how to fix these, see dependency_validator.

This check can be disabled by tagging the PR with skip-unused-dependencies-check.

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

License Headers ✔️
// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
Files
no missing headers

All source files should start with a license header.

This check can be disabled by tagging the PR with skip-license-check.

API leaks ✔️

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbol Leaking sources

This check can be disabled by tagging the PR with skip-leaking-check.

@kevmoo kevmoo requested a review from demolaf February 17, 2026 07:56
@kevmoo kevmoo merged commit eb39316 into master Feb 17, 2026
32 checks passed
@kevmoo kevmoo deleted the move_auth_things branch February 17, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants