Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #563 from cgwalters/reproducible-components
Browse files Browse the repository at this point in the history
encapsulate: Sort components
  • Loading branch information
jmarrero authored Nov 6, 2023
2 parents f0af944 + 4032635 commit 0bb03ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/container/encapsulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ fn export_chunked(
// Add the component/content layers
let mut buf = [0; 8];
let sep = COMPONENT_SEPARATOR.encode_utf8(&mut buf);
for (layer, name, packages) in layers {
for (layer, name, mut packages) in layers {
let mut annotation_component_layer = HashMap::new();
packages.sort();
annotation_component_layer.insert(CONTENT_ANNOTATION.to_string(), packages.join(sep));
ociw.push_layer(
manifest,
Expand Down

0 comments on commit 0bb03ef

Please sign in to comment.