-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[FEATURE REQ] Make spring managed external dependencies' version more clear #27427
Comments
is this still valid? and some suggestion:
|
This is still valid. |
This will be a feature part in Azure/spring-cloud-azure-tools#2 |
Hi @chenrujun, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support. |
Context
Now all external dependencies' versions are stored in https://github.com/Azure/azure-sdk-for-java/blob/spring-cloud-azure_4.0.0/eng/versioning/external_dependencies.txt
Problem
Since spring-boot-dependencies and spring-cloud-dependencies may not release at the same time.
And now all the versions managed by the 2 boms are stored in a file named "spring-boot_xxx_managed_external_dependencies". So if we only update spring-cloud-dependencies, it will override the last version and we can't keep track of them.
For example: when
spring-boot-dependencies:2.6.4
released, andspring-cloud-dependencies:v2021.0.0
released, all managed versions are recorded inspring_boot_2.6.4_managed_external_dependencies.txt
. Afterspring-cloud-dependencies:v2021.0.1
released, these versions are still recorded in the file, then the file will not have single source of truth. We should not change these files' content after they are created.Solution
get_spring_boot_managed_external_dependencies.py
: Put output file(spring-boot_xxx_managed_external_dependencies.txt
) into a new folder:sdk/spring/scripts/spring-boot-xxx-and-spring-cloud-yyy
.get_spring_boot_managed_external_dependencies.py
: Splitspring-boot_xxx_managed_external_dependencies.txt
into 2 files:get_spring_boot_managed_external_dependencies.py
toget_spring_boot_and_spring_cloud_managed_external_dependencies.py
get_spring_boot_and_spring_cloud_managed_external_dependencies.py
: Output a new file namedversion conflicts.txt
, which contains the versions that different inspring-boot-dependencies-managed-versions.txt
andspring-cloud-dependencies-managed-versions.txt
. This file have format like this:The ci job should use the new file to check version compatibility. Here is link to related logic: https://github.com/Azure/azure-sdk-for-java/blob/spring-cloud-azure-dependencies_4.0.0-beta.3/sdk/spring/ci.yml#L345-L346
The text was updated successfully, but these errors were encountered: