CHEF-34831 - Use appbundler in hab packaging#341
Open
nikhil2611 wants to merge 4 commits into
Open
Conversation
Simplecov Report
|
Signed-off-by: nikhil2611 <ngupta@progress.com>
90f04a2 to
2232f48
Compare
…windows test pipeline Signed-off-by: nikhil2611 <ngupta@progress.com>
sanghinitin
approved these changes
May 27, 2026
- Simplified binstub_patch.rb to match chef/chef (only GEM_PATH + APPBUNDLER_ALLOW_RVM) - Updated do_setup_environment to use push_runtime_env/set_runtime_env - Fixed do_prepare to use proper /usr/bin/env symlink pattern with do_end cleanup - Reordered do_install: fix_interpreter vendor/bin -> appbundler -> sed binstub_patch - Reference external binstub_patch.rb file instead of inline generation - Removed fix_interpreter on bin/* (not needed, matches chef pattern) Signed-off-by: nikhil2611 <ngupta@progress.com>
583403d to
45535b0
Compare
This was referenced Jun 1, 2026
Reverts addressable version bump, cleanup_lint_roller chef-cli addition, and .github directory removal logic from this PR as they are handled separately in PR #342. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: nikhil2611 <ngupta@progress.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request focuses on improving the packaging and installation process for
chef-cli, particularly in Habitat environments, and updates some dependencies. The main changes include refining how binstubs are generated and patched for better compatibilityPackaging and binstub improvements:
plan.shto generate binstubs forchef-cliusingappbundler, added a patch (binstub_patch.rb) to allow running binstubs directly, and replaced the previous wrapper function with a new runtime environment wrapper script. This ensures the correct Ruby and gem environment is set up when runningchef-cliand improves compatibility. (habitat/plan.sh,binstub_patch.rb, [1] [2]binstub_patch.rbautomatically to all generated binstubs in the package. (habitat/plan.sh, habitat/plan.shL66-R114)Build/test process improvements:
.expeditor/buildkite/artifact.habitat.test.ps1, [1] [2] [3].expeditor/buildkite/artifact.habitat.test.ps1, .expeditor/buildkite/artifact.habitat.test.ps1L84-L86)Related Issue
Types of changes
Checklist:
Gemfile.lockhas changed, I have used--conservativeto do it and included the full output in the Description above.