-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schema/labels: consistently order LabelsFromMap
Prior to this change, the slice of labels produced by LabelsFromMap could have any arbitrary ordering. See appc/docker2aci#245 for one of the issues this causes in practice. I also renamed the type 'labels' to 'labelsSlice' since, as it was, it was being constantly shadowed. This is not accompanied with any spec change since labels in the appc spec are already a slice, and thus already have a consistent ordering. It's unfortunate that a round trip of ToMap/FromMap won't be consistent, but I don't think any callers actually do that currently.
- Loading branch information
Showing
2 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters