Skip to content

Hermetic Build config update script not finding the latest gapic-generator version #11649

@lqiu96

Description

@lqiu96

The query used to determine the latest version of the generator in the update generation config scripts: https://search.maven.org/solrsearch/select?q=g:com.google.api+AND+a:gapic-generator-java&core=gav&rows=500&wt=json

Results in:

{"responseHeader":{"status":0,"QTime":830,"params":{"q":"g:com.google.api AND a:gapic-generator-java","core":"gav","indent":"off","fl":"id,g,a,v,p,ec,timestamp,tags","start":"","sort":"score desc,timestamp desc,g asc,a asc,v desc","rows":"20","wt":"json","version":"2.2"}},"response":{"numFound":61,"start":0,"docs":[{"id":"com.google.api:gapic-generator-java:2.59.0","g":"com.google.api","a":"gapic-generator-java","v":"2.59.0","p":"jar","timestamp":1748880608000,"ec":["-sources.jar","-test.protobin",".pom","-testlib.jar","-javadoc.jar",".jar"],"tags":["java","gapic","generator"]},{"id":"com.google.api:gapic-generator-java:2.58.0","g":"com.google.api","a":"gapic-generator-java","v":"2.58.0","p":"jar","timestamp":1747170135000,"ec":["-sources.jar","-test.protobin",".pom","-testlib.jar","-javadoc.jar",".jar"],"tags":["java","gapic","generator"]},{"id":"com.google.api:gapic-generator-java:2.57.0","g":"com.google.api","a":"gapic-generator-java","v":"2.57.0","p":"jar","timestamp":1746493084000,"ec":["-sources.jar","-test.protobin",".pom","-testlib.jar","-javadoc.jar",".jar"],"tags":["java","gapic","generator"]}, ...

And results in 2.59.0 as the latest version.

However, Sonartype shows that v2.60.0 is the latest version: https://central.sonatype.com/artifact/com.google.api/gapic-generator-java/versions

Image

The generator config yaml file isn't updating to use the latest generator and may result in future versions missing new generator features.

This also impacts all downstream handwritten libraries that use the same query to update the generator version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions