-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: do not generate Version.java files by default #12955
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
Changes from all commits
0b4bb2f
f80f0d4
c088c4f
242c5b0
80215df
759bb65
cdb27b0
ab85289
64962c0
0ace657
b53b9fc
557f9a7
5312129
5bb4e9f
17b1d19
b71964b
77a734c
b57c4c5
78c8d18
6669480
b34404c
dfc4639
2c126f5
0e8f087
a6159a2
916f1d3
4a2ac35
6cfddbb
c2d5720
bfddaa0
d5dce71
63c8794
690e7d7
2288971
d276f5c
68097f8
512432c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -30,6 +30,11 @@ case $key in | |||||
| rest_numeric_enums="$2" | ||||||
| shift | ||||||
| ;; | ||||||
| --generate_version_java) | ||||||
| generate_version_java="$2" | ||||||
| shift | ||||||
| ;; | ||||||
|
|
||||||
| --gapic_yaml) | ||||||
| gapic_yaml="$2" | ||||||
| shift | ||||||
|
|
@@ -75,6 +80,11 @@ if [ -z "${proto_only}" ]; then | |||||
| proto_only="false" | ||||||
| fi | ||||||
|
|
||||||
| if [ -z "${generate_version_java}" ]; then | ||||||
| generate_version_java="true" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The default value for
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is for our open source library generation, which does require Version.java generation |
||||||
| fi | ||||||
|
|
||||||
|
|
||||||
| if [ -z "${gapic_additional_protos}" ]; then | ||||||
| gapic_additional_protos="google/cloud/common_resources.proto" | ||||||
| fi | ||||||
|
|
@@ -190,7 +200,7 @@ if [[ "${proto_only}" == "false" ]]; then | |||||
| "$protoc_path"/protoc --experimental_allow_proto3_optional \ | ||||||
| "--plugin=protoc-gen-java_gapic=${script_dir}/gapic-generator-java-wrapper" \ | ||||||
| "--java_gapic_out=metadata:${temp_destination_path}/java_gapic_srcjar_raw.srcjar.zip" \ | ||||||
| "--java_gapic_opt=$(get_gapic_opts "${transport}" "${rest_numeric_enums}" "${gapic_yaml}" "${service_config}" "${service_yaml}" "${repo}" "${artifact}")" \ | ||||||
| "--java_gapic_opt=$(get_gapic_opts "${transport}" "${rest_numeric_enums}" "${gapic_yaml}" "${service_config}" "${service_yaml}" "${repo}" "${artifact}" "${generate_version_java}")" \ | ||||||
| ${proto_files} ${gapic_additional_protos} | ||||||
|
|
||||||
| unzip -o -q "${temp_destination_path}/java_gapic_srcjar_raw.srcjar.zip" -d "${temp_destination_path}" | ||||||
|
|
||||||
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.
that flag is a convenience to understand generation diffs when the generator ITs are failing