-
Notifications
You must be signed in to change notification settings - Fork 680
CHEF-23547 use official distribution in hab plan #7507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for chef-inspec ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
21d49a5 to
19ef3e7
Compare
There was a problem hiding this comment.
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 modifies the Habitat packaging configuration to use the official chef-official-distribution gem instead of relying on default dependency resolution, while also integrating a custom chef-licensing branch.
- Comments out the chef-licensing dependency in the gemspec
- Adds manual installation of a custom chef-licensing branch from GitHub
- Installs chef-official-distribution gem from internal artifactory in both shell and PowerShell plans
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| inspec-core.gemspec | Comments out chef-licensing dependency |
| habitat/plan.sh | Adds manual installation of custom chef-licensing and chef-official-distribution gems |
| habitat/plan.ps1 | Adds PowerShell equivalent with verification steps for gem installations |
| Gemfile | Adds chef-licensing dependency from GitHub branch |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
habitat/plan.sh
Outdated
| popd | ||
| rm -rf /tmp/chef-licensing | ||
|
|
||
| # internal artificatory is not compatible to resolve gem deps and fails with gem install <URL> |
Copilot
AI
Sep 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a typo in the comment: 'artificatory' should be 'artifactory'.
| # internal artificatory is not compatible to resolve gem deps and fails with gem install <URL> | |
| # internal artifactory is not compatible to resolve gem deps and fails with gem install <URL> |
habitat/plan.ps1
Outdated
| gem list chef-licensing | ||
| If ($lastexitcode -ne 0) { Exit $lastexitcode } | ||
|
|
||
| # internal artificatory is not compatible to resolve gem deps and fails with gem install <URL> |
Copilot
AI
Sep 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a typo in the comment: 'artificatory' should be 'artifactory'.
| # internal artificatory is not compatible to resolve gem deps and fails with gem install <URL> | |
| # internal artifactory is not compatible to resolve gem deps and fails with gem install <URL> |
habitat/plan.sh
Outdated
| } | ||
|
|
||
| do_install() { | ||
| # Work around to load custom chef-licensing branch |
Copilot
AI
Sep 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment should use 'workaround' (one word) instead of 'Work around' for consistency with technical terminology.
| # Work around to load custom chef-licensing branch | |
| # Workaround to load custom chef-licensing branch |
habitat/plan.ps1
Outdated
| } | ||
|
|
||
| function Invoke-Install { | ||
| # Work around to load custom chef-licensing branch |
Copilot
AI
Sep 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment should use 'workaround' (one word) instead of 'Work around' for consistency with technical terminology.
| # Work around to load custom chef-licensing branch | |
| # Workaround to load custom chef-licensing branch |
1558c6e to
258f060
Compare
b2e56a1 to
e96f3a5
Compare
e96f3a5 to
d4a388d
Compare
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Vasu1105 <vjagdale@progress.com>
Signed-off-by: Vasu1105 <vjagdale@progress.com>
Signed-off-by: Vasu1105 <vjagdale@progress.com>
… code clean up Signed-off-by: Vasu1105 <vjagdale@progress.com>
d4a388d to
dee96dc
Compare
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
Signed-off-by: Sathish <sbabu@progress.com>
9d38c50 to
f3db4c9
Compare
This pull request updates how the
chef-licensinggem is integrated and installed, switching to a custom branch and working around dependency resolution issues with internal artifactory. The changes affect the Gemfile, build/install scripts, and gemspec dependencies to ensure the correct version ofchef-licensingis used during development and packaging.Description
Dependency management and installation changes:
chef-licensinggem to theGemfile, sourcing it from a custom branch (nm/introducing-optional-mode) on GitHub instead of the default version. This will go away when the custom branch is released as gem.chef-licensingininspec-core.gemspec, relying on the Gemfile and build scripts to provide the correct version.Build and packaging script updates:
habitat/plan.sh(do_install) to clone the customchef-licensingbranch from GitHub, build, and install the gem directly, and added a workaround to manually download and install thechef-official-distributiongem from internal artifactory due to incompatibility with standard gem dependency resolution.habitat/plan.ps1(Invoke-Install) to perform similar steps on Windows: clone and install the customchef-licensingbranch, manually download and install thechef-official-distributiongem, and verify both installations.Related Issue
Types of changes
Checklist: