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

fix: Archive extraction path correctly points to the jar file that's being extracted #407

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

another-rex
Copy link
Collaborator

Currently archive extractor saves the path within the jar file (appended to the jar file path) as the Location of the inventory, which is a path that does not exist on disk.

This moves it to a secondary location, so the first location is a real path.

@@ -276,7 +276,7 @@ func (e Extractor) extractWithMax(ctx context.Context, input *filesystem.ScanInp
GroupID: pp.GroupID,
SHA1: sha1,
},
Locations: []string{path},
Locations: []string{input.Path, path},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to update the tests too

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.

3 participants