upgrade: upgrade dependencies github.com/prometheus/common to the newest version

Signed-off-by: jwcesign <jwcesign@gmail.com>
This commit is contained in:
jwcesign
2024-04-17 18:15:27 +08:00
parent 7f68d014e5
commit f0aa62bc96
177 changed files with 4141 additions and 2425 deletions

View File

@@ -90,13 +90,13 @@ func (a *Alert) Validate() error {
return fmt.Errorf("start time must be before end time")
}
if err := a.Labels.Validate(); err != nil {
return fmt.Errorf("invalid label set: %s", err)
return fmt.Errorf("invalid label set: %w", err)
}
if len(a.Labels) == 0 {
return fmt.Errorf("at least one label pair required")
}
if err := a.Annotations.Validate(); err != nil {
return fmt.Errorf("invalid annotations: %s", err)
return fmt.Errorf("invalid annotations: %w", err)
}
return nil
}