Skip to content

Conversation

@sanjain-progress
Copy link
Contributor

Description

This PR adds core/zlib to the Windows Habitat plan dependencies (habitat/plan.ps1).

Issues Resolved

Resolves a warning observed when running chef-cli generate cookbook commands within the Windows Habitat package:

WARNING: ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available

The `ffi-libarchive` gem requires the underlying library to be available, and explicitly adding core/zlib alongside core/libarchive ensures the necessary shared objects are loaded correctly on Windows.

Checklist

  • Verified the warning is resolved by running hab pkg exec chef/chef-cli -- chef-cli generate cookbook test-cookbook

Description

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

@sanjain-progress sanjain-progress requested review from a team as code owners January 19, 2026 16:39
Add core/zlib to habitat/plan.ps1 package dependencies.
This fixes a runtime warning when running chef-cli generate cookbook
inside the Habitat package where ffi-libarchive cannot load libarchive.

Signed-off-by: Sachin Jain <Sachin.jain@chef.io>
@github-actions
Copy link

Simplecov Report

Covered Threshold
98.51% 90%

@sonarqubecloud
Copy link

@sanjain-progress sanjain-progress merged commit 3bee560 into main Jan 21, 2026
33 of 34 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.

5 participants