Skip to content

fix: remove Version.java from extra-files in release-please-config#12717

Draft
diegomarquezp wants to merge 1 commit intomainfrom
fix/gapic-version-java-updates
Draft

fix: remove Version.java from extra-files in release-please-config#12717
diegomarquezp wants to merge 1 commit intomainfrom
fix/gapic-version-java-updates

Conversation

@diegomarquezp
Copy link
Copy Markdown
Contributor

This PR removes the glob patterns for Version.java files from the extra-files configuration in release-please-config.json.

Reasoning:
Previously, Version.java files were configured as generic type in extra-files. The Generic updater does not support the {x-version-update-start:component:current} markers used in these files. By removing them from extra-files, the JavaYoshiMonoRepo strategy will fallback to its native mechanism to find and update Version.java files using JavaUpdate, which correctly handles these markers.

See the JavaYoshiMonoRepo strategy implementation here: java-yoshi-mono-repo.ts where it searches for Version.java.

Verified by adding a unit test in release-please repository (see googleapis/release-please#2737).

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the release-please-config.json file by removing the generic configuration for tracking Version.java files across the repository and within the Java showcase directory. I have no feedback to provide.

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.

1 participant