Skip to content

CHEF-23696 - Add Habitat Packaging for Knife on Windows - #29

Merged
nikhil2611 merged 10 commits into
mainfrom
nikhil/CHEF-23696-knife-hab-pkg-windows
Jul 22, 2025
Merged

CHEF-23696 - Add Habitat Packaging for Knife on Windows#29
nikhil2611 merged 10 commits into
mainfrom
nikhil/CHEF-23696-knife-hab-pkg-windows

Conversation

@nikhil2611

Copy link
Copy Markdown
Contributor

Description

This PR adds support for building the knife gem as a Habitat package on the Windows platform. It uses core/ruby3_4-plus-devkit to ensure compatibility with Ruby 3.4 from base-2025 channel. As part of the packaging process, the chef gem (chef-19.1.36-universal-unknown.gem) is downloaded from Artifactory, renamed to the correct platform-specific name (chef-19.1.36-universal-mingw-ucrt.gem), and moved to vendor/cache to ensure it is installed locally. chef-config, chef-utils and ohai are also been installed from artifactory and all other gems are resolved from RubyGems.org during bundling.

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.

Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
Signed-off-by: nikhil2611 <nikhilgupta2102@gmail.com>
@sonarqube-for-infrastructure-prod

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@nikhil2611
nikhil2611 merged commit d304b5f into main Jul 22, 2025
sean-sype-simmons pushed a commit that referenced this pull request Dec 8, 2025
CHEF-23696 - Add Habitat Packaging for Knife on Windows
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.

3 participants