Skip to content

fix: OnInflatedObjectContent doesn't include object contents #1583

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

Open
wants to merge 1 commit into
base: releases/v5.x
Choose a base branch
from

Conversation

bored-engineer
Copy link

In #799 packfile.Parser was refactored to reduce memory usage and no longer properly invokes the packfile.Observer interface. Specifically, OnInflatedObjectContent is invoked but content will always be nil.

This PR restores the content bytes for callers that are directly using packfile.Parser outside of the more standard workflow where the values are stored in a storer.

@pjbgf
Copy link
Member

pjbgf commented Jul 9, 2025

@bored-engineer thanks for opening this PR. We are trying to limit changes to the existing v5, please propose this against the main branch instead.

It would make sense to have this an opt-in - due to the performance implications. To do this safely we will have to return a copy of the underlying array.

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.

2 participants