storage/bigquery: google-apis-* dependency floors are lower than the wrappers actually require
Maintainer antworten meist innerhalb von 1 Tag
@kalragauri arbeitet bereits daran.
Seit 14.10.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Versions
google-cloud-storage1.62.0,google-cloud-bigquery1.64.0- Ruby 3.4
Problem
The wrapper gems pass keyword arguments to their generated google-apis-* companions that older releases of those companions do not accept, but the gemspec floors were never raised to match. Bundler therefore resolves a bundle that is entirely valid by its own rules and that fails at runtime on the first call.
google-cloud-storage 1.62.0 declares:
google-apis-storage_v1 >= 0.42
but Google::Cloud::Storage::Service#list_files passes filter: to Google::Apis::StorageV1::StorageService#list_objects, and #list_buckets passes return_partial_success:. Comparing the wrapper's call sites against the generated
signatures release by release:
list_objects(filter:)is first accepted ingoogle-apis-storage_v10.54.0list_buckets(return_partial_success:)is first accepted in 0.57.0
So the real floor for google-cloud-storage 1.58.0 through 1.62.0 is google-apis-storage_v1 >= 0.57.0 — fifteen minor versions above what the gemspec asks for.
The same shape exists in BigQuery. google-cloud-bigquery 1.64.0 declares google-apis-bigquery_v2 ~> 0.71, but passes update_mode: to patch_dataset, which google-apis-bigquery_v2 first accepts in 0.88.0.
Reproduction
# Gemfile
gem "google-cloud-storage", "1.62.0"
gem "google-apis-storage_v1", "0.50.0" # satisfies the declared >= 0.42
require "google/cloud/storage"
Google::Cloud::Storage.anonymous.bucket("any-bucket", skip_lookup: true).files
ArgumentError: unknown keyword: :filter
google-apis-storage_v1-0.50.0/lib/google/apis/storage_v1/service.rb:2969:in 'list_objects'
google-cloud-storage-1.62.0/lib/google/cloud/storage/service.rb:377:in 'list_files'
google-cloud-storage-1.62.0/lib/google/cloud/storage/bucket.rb:1663:in 'files'
Why it is easy to hit
bundle update google-cloud-storage --conservative, or any resolution that holds shared
dependencies back, moves the wrapper and leaves the generated gem where it is. The result
installs cleanly, passes a test suite that stubs at the wrapper boundary, and fails the
first time an object listing runs for real.
Suggested fix
- Raise the declared floors to what the wrappers actually require:
google-apis-storage_v1 >= 0.57.0andgoogle-apis-bigquery_v2 >= 0.88.0. - Consider a release-time check that compares the keyword arguments at the wrapper's
call sites against the signatures in the minimum supported companion release, so the
floor cannot silently drift again the next time the generated client gains a parameter.
- Vorherrschende Sprache
- Ruby
- Sterne
- 1.4k
- Forks
- 581
- Ø Merge
- 1 T. 22 Std.
- Gemergte PRs (30 T.)
- 69
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus googleapis/google-cloud-ruby
-
eMudhra/emSign CA compromise (October 2026): what Cloud SDK Ruby Libraries developers need to doEvtl. vergeben @viacheslav-rostovtsev hat das vor 13 Tagen übernommen. Offentype: process
googleapis/google-cloud-ruby#36690 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
chore(ci): remove temporary Windows grpc < 1.85.0 pin once x64-mingw-ucrt gem is publishedEvtl. vergeben @viacheslav-rostovtsev hat das vor 21 Tagen übernommen. Offengrpc priority: p1 type: cleanup
googleapis/google-cloud-ruby#36677 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
[google-cloud-datastore] timeout option has no effect: per-RPC defaults override it (same as #14050)Offenapi: datastore priority: p2 type: bug
googleapis/google-cloud-ruby#36632 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Support `STORAGE_EMULATOR_HOST` in the `google-cloud-storage` GemEvtl. vergeben @rajeevpodar hat das vor 38 Tagen übernommen. Offenapi: storage priority: p2 type: feature request
googleapis/google-cloud-ruby#34022 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Google::Cloud::Error Events - Stream error in the HTTP/2 framing layer (Google::Cloud::Error)Evtl. wieder frei @rajeevpodar hat das vor 38 Tagen übernommen, und es ist kein Pull Request offen. Offenapi: storage priority: p2 type: bug
googleapis/google-cloud-ruby#33451 · 1 Kommentar · 1 Reaktion · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in googleapis/google-cloud-ruby
Ähnliche Issues
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 66/100
philippe-nougaillon/coopcomm#543 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
we-promise/sure#5191 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
Supoort VXBilibili linksOffenSource Support
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
palkan/action_policy#316 ·