Skip to content

refactor: remove archive format monkey-patches (zutils 0.8.2)#26

Merged
ppenna merged 1 commit into
nanvix/v2.12.9from
fix/remove-archive-monkey-patches
May 11, 2026
Merged

refactor: remove archive format monkey-patches (zutils 0.8.2)#26
ppenna merged 1 commit into
nanvix/v2.12.9from
fix/remove-archive-monkey-patches

Conversation

@ppenna

@ppenna ppenna commented May 11, 2026

Copy link
Copy Markdown

zutils v0.8.2 natively handles .tar.gz, .tar.bz2 and .zip archives via tarfile.open("r:*") and zipfile.is_zipfile().

Remove the setup() overrides that monkey-patched tarfile.open to work around the old hardcoded r:bz2 extraction mode.

zutils v0.8.2 natively handles .tar.gz, .tar.bz2 and .zip
archives via tarfile.open("r:*") and zipfile.is_zipfile().
Remove the setup() overrides that monkey-patched tarfile.open
to work around the old hardcoded r:bz2 extraction mode.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the local setup() override in the Nanvix build helper script now that nanvix-zutil v0.8.2 can natively handle .tar.gz, .tar.bz2, and .zip archives without needing monkey-patches.

Changes:

  • Removed the setup() method override that rewrote dependency artifact patterns and temporarily monkey-patched tarfile.open.
  • Relies on upstream nanvix-zutil archive detection/extraction behavior instead of local workarounds.
Show a summary per file
File Description
.nanvix/z.py Deletes the custom setup() monkey-patching logic and falls back to the base ZScript.setup() implementation.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread .nanvix/z.py
@ppenna
ppenna merged commit 66311d7 into nanvix/v2.12.9 May 11, 2026
16 checks passed
@ppenna
ppenna deleted the fix/remove-archive-monkey-patches branch May 11, 2026 17:57
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