Skip to content

refactor(config): use cmp.Or to merge global config defaults#4812

Merged
SuperQ merged 1 commit intoprometheus:mainfrom
TheMeier:refactor/config
Jan 30, 2026
Merged

refactor(config): use cmp.Or to merge global config defaults#4812
SuperQ merged 1 commit intoprometheus:mainfrom
TheMeier:refactor/config

Conversation

@TheMeier
Copy link
Contributor

cmp.Or is part of the standard-library since go 1.22. This PR uses it to apply global-defaults in the configuration.

@TheMeier TheMeier force-pushed the refactor/config branch 2 times, most recently from 78a69fe to 47e2cf9 Compare December 13, 2025 11:42
@SoloJacobs SoloJacobs self-requested a review December 13, 2025 13:38
Copy link
Contributor

@SoloJacobs SoloJacobs left a comment

Choose a reason for hiding this comment

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

LGTM, thanks 👍

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
@SuperQ SuperQ merged commit 0f7862d into prometheus:main Jan 30, 2026
7 checks passed
@SoloJacobs SoloJacobs mentioned this pull request Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants