Skip to content

[email protected]: use zlib-ng-compat on Linux#4986

Draft
chenrui333 wants to merge 1 commit intomainfrom
zlibng-zig-0.12
Draft

[email protected]: use zlib-ng-compat on Linux#4986
chenrui333 wants to merge 1 commit intomainfrom
zlibng-zig-0.12

Conversation

@chenrui333
Copy link
Copy Markdown
Owner

Style and audit pass locally on macOS.

Replaces uses_from_macos \"zlib\" with a Linux-only depends_on \"zlib-ng-compat\" block.

Copilot AI review requested due to automatic review settings March 9, 2026 01:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the [email protected] Homebrew formula to use zlib-ng-compat specifically on Linux instead of the previous uses_from_macos "zlib" behavior.

Changes:

  • Removes uses_from_macos "zlib".
  • Adds a Linux-only dependency on zlib-ng-compat.

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

uses_from_macos "ncurses"
uses_from_macos "zlib"

on_linux do
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

Depending on zlib-ng-compat (instead of the more typical zlib) is a non-obvious choice in a formula. Consider adding a short inline comment explaining why Zig 0.12 specifically needs zlib-ng-compat on Linux (and ideally link to the relevant issue/PR). This will help future maintainers understand why this dependency is OS-conditional and why the standard zlib was not used.

Suggested change
on_linux do
on_linux do
# Use zlib-ng-compat on Linux to match Zig 0.12's upstream zlib-ng usage.
# See discussion in https://github.com/Homebrew/homebrew-core/pull/141453.

Copilot uses AI. Check for mistakes.
@chenrui333 chenrui333 force-pushed the zlibng-zig-0.12 branch 2 times, most recently from 0dcb25f to 3c01d49 Compare March 14, 2026 21:31
@chenrui333 chenrui333 added the CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. label Mar 14, 2026
@chenrui333 chenrui333 marked this pull request as draft March 14, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants