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

Jjbustamante feature/support multiple artifacts of different types #100

Conversation

dmikusa
Copy link
Contributor

@dmikusa dmikusa commented Jan 26, 2022

Summary

Adjustments to paketo-buildpacks/native-image#124.

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

jjbustamante and others added 5 commits December 7, 2021 18:32
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
Signed-off-by: Juan Bustamante <jbustamante@vmware.com>
- Adds single new ArtifactResolver method, ResolveMany & tests
- Uses ResolveMany in Application to check for artifacts
- If a single artifact is returned, check if its a file then proceed using the existing procedure. If it's a directory, then copy directory contents to the layer.
- If multiple artifacts are returned, check and persist all files and all directory contents

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
- Adds more test cases around matching scenarios that were not previously covered
- Adds more test cases around file copies that were not previously covered
- Changes the behavior of how a directory is persisted to the layer. Previously, the directory contents would be copied to the root of the layer. This leaves a potential problem if directory A and directory B both have a file with the same name. In that case, the file from whatever directory is copied second would overwrite the file from the first directory. This changes the behavior such that files copied out of directory A are store under the layer in a directory named A and files out of a directory B are stored under the layer in a directory B. This is a slight change though as the files restored back out of the layer will now be in sub directories.

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
@dmikusa dmikusa added type:enhancement A general enhancement semver:minor A change requiring a minor version bump labels Jan 26, 2022
@dmikusa dmikusa requested a review from a team January 26, 2022 14:03
@dmikusa dmikusa merged commit 49ef04d into main Jan 26, 2022
@dmikusa dmikusa deleted the jjbustamante-feature/support-multiple-artifacts-of-different-types branch January 26, 2022 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor A change requiring a minor version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants