-
Notifications
You must be signed in to change notification settings - Fork 68
fix(hermetic-build): use public maven metadata for latest version inference #3853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Follow up: HW libraries without hermetic build (e.g. java-bigquery). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check xmllint is available in the container before merging this?
Confirming manually in java-storage: googleapis/java-storage#3181 Installing using I modified the template. Thanks a lot for the catch, @suztomo! |
Thank you. |
|
|
🤖 I have created a release *beep* *boop* --- <details><summary>2.60.1</summary> ## [2.60.1](v2.60.0...v2.60.1) (2025-07-08) ### Bug Fixes * **hermetic-build:** use public maven metadata for latest version inference ([#3853](#3853)) ([0be1e96](0be1e96)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Unfortunately, googleapis/sdk-platform-java#3853 cannot be automatically propagated. This PR manually updates this script with the latest.
Unfortunately, googleapis/sdk-platform-java#3853 cannot be automatically propagated. This PR manually updates this script with the latest.
Unfortunately, googleapis/sdk-platform-java#3853 cannot be automatically propagated. This PR manually updates this script with the latest.
Unfortunately, googleapis/sdk-platform-java#3853 cannot be automatically propagated. This PR manually updates this script with the latest.
* chore: manual update of update_generation_config.sh Unfortunately, googleapis/sdk-platform-java#3853 cannot be automatically propagated. This PR manually updates this script with the latest. * chore: generate libraries at Thu Jul 24 16:12:02 UTC 2025 * chore: update yaml as well * chore: bring back the script * chore: generate libraries at Thu Jul 24 16:17:24 UTC 2025 * chore: include yaml changes as well * chore: generate libraries at Thu Jul 24 17:52:43 UTC 2025 * Revert "chore: generate libraries at Thu Jul 24 17:52:43 UTC 2025" This reverts commit 3322513. * chore: generate libraries at Thu Jul 24 18:50:37 UTC 2025 * Revert "chore: generate libraries at Thu Jul 24 18:50:37 UTC 2025" This reverts commit a1c5956. * chore: generate libraries at Thu Jul 24 18:54:36 UTC 2025 * Revert "chore: generate libraries at Thu Jul 24 18:54:36 UTC 2025" This reverts commit 53c4dd7. --------- Co-authored-by: cloud-java-bot <[email protected]>
Unfortunately, googleapis/sdk-platform-java#3853 cannot be automatically propagated. This PR manually updates this script with the latest.
Unfortunately, googleapis/sdk-platform-java#3853 cannot be automatically propagated. This PR manually updates this script with the latest.
Unfortunately, googleapis/sdk-platform-java#3853 cannot be automatically propagated. This PR manually updates this script with the latest.
…erence (#3853) Currently, the `get_latest_released_version()` function returns `2.59.0` for gapic-generator-java. This is not correct and is due to an ongoing issue with Maven. This PR uses the alternative `maven-metadata.xml` files instead, which contains a `metadata/versioning/latest` entry always pointing to the latest version. ```bash [hi on] diegomarquezp:~$ function get_latest_released_version() { local group_id=$1 local artifact_id=$2 group_id_url_path="$(sed 's|\.|/|g' <<< "${group_id}")" url="https://repo1.maven.org/maven2/${group_id_url_path}/${artifact_id}/maven-metadata.xml" xml_content=$(curl -s --fail "${url}") latest=$(xmllint --xpath 'metadata/versioning/latest/text()' - <<< "${xml_content}") if [[ -z "${latest}" ]]; then echo "The latest version of ${group_id}:${artifact_id} is empty." echo "The returned json from maven.org is invalid: ${json_content}" exit 1 else echo "${latest}" fi } [hi on] diegomarquezp:~$ get_latest_released_version com.google.api gapic-generator-java 2.60.0 ```
🤖 I have created a release *beep* *boop* --- <details><summary>2.60.1</summary> ## [2.60.1](v2.60.0...v2.60.1) (2025-07-08) ### Bug Fixes * **hermetic-build:** use public maven metadata for latest version inference ([#3853](#3853)) ([0be1e96](0be1e96)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- <details><summary>2.60.1</summary> ## [2.60.1](v2.60.0...v2.60.1) (2025-07-08) ### Bug Fixes * **hermetic-build:** use public maven metadata for latest version inference ([#3853](#3853)) ([0be1e96](0be1e96)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Currently, the
get_latest_released_version()
function returns2.59.0
for gapic-generator-java. This is not correct and is due to an ongoing issue with Maven.This PR uses the alternative
maven-metadata.xml
files instead, which contains ametadata/versioning/latest
entry always pointing to the latest version.