-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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(image): fix problem with open jar files #3516
fix(image): fix problem with open jar files #3516
Conversation
pkg/fanal/artifact/image/image.go
Outdated
} | ||
return digest, rc, nil | ||
return digest, size, rc, nil |
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 think we can return the cached layer here. Also, we should always cache layers when --slow
is passed.
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.
In addition, cachedFile is no longer needed.
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.
Done
These fixes have been added to the following PRs: |
Description
fixes for following error:
PROTOCOL_ERROR; received from peer
- Increase timeout for getting remote image to fixunexpected EOF
- Save layers smaller than 50MB to files and use this to parse files.Related issues
Checklist