-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
There should be single source of truth for the project version #21302
Comments
@damccorm IIUC, if I just want to build a snapshot version on the master branch, I don't need to change anything in |
Yeah, that should be right |
I don't know how I did not know about this. Sheesh. |
Is "choose_rc_commit.sh" broken? Answer is "sort of". Yea why in the world does |
It is actually defined in 6 places:
Some of this is "essential" because Go and Python have a different concept for non-release versions than Java does. But I'm at least going to resolve the specific redundancy here which causes spurious |
Is this stale? I no longer see the version explicitly mentioned in BeamModulePluginGroovy (seems to have dissapeared between version 2.51 and 2.52.) |
I got rid of at least one. I think there are probably still a few. I guess I would want to check all the places that https://github.com/apache/beam/blob/master/release/src/main/scripts/set_version.sh sets things. This script may be obsoleted by some new GitHub Actions. (the only purpose the script really has is to know all the places the version exists) |
Now the Beam version is defined in two places:
apply
function in BeamModulePluginThe latter effectively overrides the former. For someone not very familiar with the Beam build system this may result in a hard to understand and debug behavior: unexpected version gets build and/or pushed to local Maven repository, and changing version in
gradle.properties
does not have any effect.Adding a comment with a reference to
BeamModulePlugin
togradle.properties
can be a good start, and in the long run it would be great to have single source of truth for the project version.Imported from Jira BEAM-14051. Original Jira may contain additional context.
Reported by: dmitryor.
The text was updated successfully, but these errors were encountered: