-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore: script to apply versions.txt to pom.xml #8542
Conversation
for KV in $(cut -f1,3 -d: $versions_file |grep -v "#"); do | ||
K=${KV%:*}; V=${KV#*:} | ||
echo Key:$K, Value:$V; | ||
pom_files="$(find $MODULE -maxdepth 3 -name pom.xml) pom.xml CoverageAggregator/pom.xml google-cloud-gapic-bom/pom.xml" |
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.
Why do you have to list CoverageAggregator
and google-cloud-gapic-bom
explicitly? Wouldn't those poms be found automatically?
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.
It's finding pom.xml within the $MODULE
directory only. It does not try to find other 100 pom.xml files in other modules.
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.
Wouldn't it be more thorough, if it did? Just scan all pom.xml's for the version ref.
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.
It's unnecessarily slow. If you have a module that references a version in another module, then it makes sense. Do you know such module?
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.
It seems to be the case in at least java-asset
.
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.
Also, do you want to add this to bootstrap.sh
and the generated_files_sync.yaml
checks?
@meltsufin Added this script to bootstrap.sh and added steps in generated_files_sync.yaml checks. |
Bootstrap failed. 'remote: Permission to googleapis/google-cloud-java.git denied to github-actions[bot]. |
|
Fixes #8532 with
generation/apply_current_versions.sh
.