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: xz decompression issues #178

Merged
merged 1 commit into from
Nov 26, 2024
Merged

fix: xz decompression issues #178

merged 1 commit into from
Nov 26, 2024

Conversation

kormide
Copy link
Collaborator

@kormide kormide commented Nov 25, 2024

Wait for the writable stream to end before reading the extracted module file. Also pause subsequent writes while the write buffer needs to be drained. It's not clear why the latter is necessary as the docs suggest you can continue to do writes while undrained content continues to be buffered in memory. However, this seems to fix an issue where the extracted content was incorrect.

Example of a working publish on the dev environment: publish-to-bcr-dev-registry/bazel-central-registry#82.

Closes #176.

@kormide
Copy link
Collaborator Author

kormide commented Nov 25, 2024

The failing e2e is unrelated. Fix for that is here: #179

Copy link
Contributor

@jmillikin jmillikin left a comment

Choose a reason for hiding this comment

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

LGTM

Thank you so much!

@kormide kormide merged commit 28ea23b into main Nov 26, 2024
2 checks passed
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.

Publish failed due to "Could not find MODULE.bazel", not sure how to debug
3 participants