Skip to content

Let the last label take precedence in the native repository - #3376

Merged
ryanjbaxter merged 1 commit into
spring-cloud:mainfrom
ryanjbaxter:native-last-label-wins
Nov 2, 2026
Merged

ryanjbaxter merged 1 commit into
spring-cloud:mainfrom
ryanjbaxter:native-last-label-wins

Conversation

@ryanjbaxter

Copy link
Copy Markdown
Contributor

With multiple labels the native repository passed all label locations to Spring Boot, which interleaved them by profile and gave the first label precedence. The SCM, S3, JDBC and other repositories resolve each label on its own and let the last label win.

Resolve one label at a time and let the last label take precedence. The previous behavior can be restored with
spring.cloud.config.server.native.lastLabelWins=false.

Enable the compliance test for multiple labels.

With multiple labels the native repository passed all label locations to
Spring Boot, which interleaved them by profile and gave the first label
precedence. The SCM, S3, JDBC and other repositories resolve each label
on its own and let the last label win.

Resolve one label at a time and let the last label take precedence.
The previous behavior can be restored with
spring.cloud.config.server.native.lastLabelWins=false.

Enable the compliance test for multiple labels.

Signed-off-by: Ryan Baxter <ryan.baxter@broadcom.com>

@spencergibb spencergibb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lot's of subtleties coming out because of your fixture. Good stuff.

@ryanjbaxter
ryanjbaxter merged commit 3d41249 into spring-cloud:main Nov 2, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in 2026.0.0-RC2 Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants