-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort datasetconfig for deterministic storage #97
base: main
Are you sure you want to change the base?
Conversation
cli/build_collection.go
Outdated
@@ -224,8 +225,15 @@ func (o *BuildCollectionOptions) Run(ctx context.Context) error { | |||
|
|||
descs = append(descs, linkedDescs...) | |||
|
|||
// Store the DataSetConfiguration file in the manifest config of the OCI artifact for | |||
// later use. | |||
// Sort the slices within the DataSetConfiguration and store the file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this logic to config/load
? It would probably be useful to have these sorted upfront.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll get on it
741e4b0
to
d92a2ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I think it just needs some tweaks to the unit tests for validation, and this should be good to go.
@afflom are you planning on adding the requested unit tests? |
Yes, but I'm finishing up the attributes API on the registry first. |
Related: #92