bump compose-go to version v2.14.0 - #13983
Conversation
Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
257ccd9 to
d448e1f
Compare
docker-agent
left a comment
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Not a blocker, but perhaps that func joinErrors(errs []error) error {
if len(errs) == 0 {
return nil
}
slices.SortStableFunc(errs, func(a, b error) int {
return slices.Compare(errorPath(a), errorPath(b))
})
return errors.Join(errs...)
}This would panic ( func errorPath(err error) []string {
var pe pathError
if errors.As(err, &pe) {
return pe.path.Parts()
}
return []string{err.Error()}
}(possibly the |
Mostly thinking here to keep sorting and joining separate. The func sortPathErrors(errs []error) {
slices.SortStableFunc(errs, func(a, b error) int {
return slices.Compare(errorPath(a), errorPath(b))
})
}☝️ should have some guards for empty slices and nil errors. Then sort before joining; sortPathErrors(errs)
return out, errors.Join(errs...) |
What I did
Bump
compose-goto versionv2.14.0Related issue
N/A
(not mandatory) A picture of a cute animal, if possible in relation to what you did
