Skip to content
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

Allow some of prioritized files are missed during sort #216

Merged
merged 1 commit into from
Dec 22, 2020

Conversation

ktock
Copy link
Member

@ktock ktock commented Dec 20, 2020

#212 (comment)

This commit adds a new option WithAllowPrioritizeNotFound. This makes Build
continue the execution even if some of prioritized files specified by
WithPrioritizedFiles option aren't found in the input tar. Instead, this records
all missed file names to the passed slice.

This commit adds a new option WithAllowPrioritizeNotFound. This makes Build
continue the execution even if some of prioritized files specified by
WithPrioritizedFiles option aren't found in the input tar. Instead, this records
all missed file names to the passed slice.

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
@ktock
Copy link
Member Author

ktock commented Dec 20, 2020

@mattmoor WDYT?

@mattmoor
Copy link
Contributor

I see, so this would collect the missed files, so that the caller knows what files were missed?

@ktock
Copy link
Member Author

ktock commented Dec 21, 2020

Yes. So caller can optimize the layer in best-effort and know which files are missed. This information seems needed for indicating some warnings on the caller's side according to google/go-containerregistry#879 (comment) ?

@mattmoor
Copy link
Contributor

Yeah I think that'll be perfect for aggregating across layers and images and surfacing back to the user what was missing.

@AkihiroSuda AkihiroSuda merged commit be881f9 into containerd:master Dec 22, 2020
@ktock ktock deleted the allownotfound branch October 7, 2022 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants