Skip to content

Commit d428cb1

Browse files
nikhil2611ashiquepssanghinitinsean-sype-simmonschef-ci
authored
Habitat Package for Chef-CLI (#260)
* Chef license commands implementation Signed-off-by: Ashique P S <[email protected]> * Added the faraday_middleware for testing Signed-off-by: Ashique P S <[email protected]> * Fixed the issue with ui object Signed-off-by: Ashique P S <[email protected]> * Chefstyle fixes Signed-off-by: Ashique P S <[email protected]> * Specs for the license commands Signed-off-by: Ashique P S <[email protected]> * Added option to pass license key as a param Signed-off-by: Ashique P S <[email protected]> * Updated the chef-licensing dependency to fetch from internal artifactory Signed-off-by: Ashique P S <[email protected]> * Removed the byebug Signed-off-by: Ashique P S <[email protected]> * Added the feature flag for the licensing commands Signed-off-by: Ashique P S <[email protected]> * updated the feature flag file name Signed-off-by: Ashique P S <[email protected]> * Added chef-licensing gem as a gemspec dependency Signed-off-by: Ashique P S <[email protected]> * Licensing updates Signed-off-by: Ashique Saidalavi <[email protected]> * Updated the chef-licensing gem version Signed-off-by: Ashique Saidalavi <[email protected]> * Fixed the spec failure Signed-off-by: Ashique Saidalavi <[email protected]> * Fixed the chefstyle issues Signed-off-by: Ashique Saidalavi <[email protected]> * Added plan.sh file (#237) * Added plan.sh file Signed-off-by: nitin sanghi <[email protected]> * Change gem file for app bundler on windows and plan.ps1 added Signed-off-by: nitin sanghi <[email protected]> * Habitat pkg version sync with version file Signed-off-by: nitin sanghi <[email protected]> * Removed duplicate dep and check linux gem are not trying to install on windows Signed-off-by: nitin sanghi <[email protected]> * Change in linux plan file and Rakefile to add install task Signed-off-by: nitin sanghi <[email protected]> * added hab path aware code changes Signed-off-by: nikhil2611 <[email protected]> * fixing the git issue Signed-off-by: nikhil2611 <[email protected]> * added the hab env and few command fix for hab path Signed-off-by: nikhil2611 <[email protected]> * testing for plan.sh as of now Signed-off-by: nikhil2611 <[email protected]> * adding back omnibus methods for testing Signed-off-by: nikhil2611 <[email protected]> * initializing pkg_prefix in hab_env Signed-off-by: nikhil2611 <[email protected]> * updated the origin variable for chef-cli Signed-off-by: nikhil2611 <[email protected]> * Added chef spec gem Signed-off-by: nitin sanghi <[email protected]> * testing chefspec changes Signed-off-by: nikhil2611 <[email protected]> * Added rspec in bin dir for linking issue Signed-off-by: nitin sanghi <[email protected]> * Chefspec dep for rspec fix to 3.12 Signed-off-by: nitin sanghi <[email protected]> * Pinning rspec version Signed-off-by: nitin sanghi <[email protected]> * Change chef-cli hab pkg origin Signed-off-by: nitin sanghi <[email protected]> * Hab channel changed Signed-off-by: nitin sanghi <[email protected]> * Chef 17400 pipeline (#241) * Add github action for hab pkg and publish Signed-off-by: nitin sanghi <[email protected]> * Added version check on new hab pkg Signed-off-by: nitin sanghi <[email protected]> * removed extra keyword for triggering pipeline Signed-off-by: nitin sanghi <[email protected]> * pkg iden added using vars Signed-off-by: nitin sanghi <[email protected]> * list all pkg to verify pkg installed Signed-off-by: nitin sanghi <[email protected]> * Installing hab build using hart file Signed-off-by: nitin sanghi <[email protected]> * Installing hab build using hart file Signed-off-by: nitin sanghi <[email protected]> * Installing hab build using hart file Signed-off-by: nitin sanghi <[email protected]> * pipeline test commit Signed-off-by: nitin sanghi <[email protected]> * pipeline test commit Signed-off-by: nitin sanghi <[email protected]> * pipeline test commit Signed-off-by: nitin sanghi <[email protected]> * pipeline test commit Signed-off-by: nitin sanghi <[email protected]> * pipeline test commit Signed-off-by: nitin sanghi <[email protected]> * sudo for installing hab pkg Signed-off-by: nitin sanghi <[email protected]> * sudo for installing hab pkg Signed-off-by: nitin sanghi <[email protected]> * sudo for installing hab pkg Signed-off-by: nitin sanghi <[email protected]> * sudo for installing hab pkg Signed-off-by: nitin sanghi <[email protected]> * hart file version change Signed-off-by: nitin sanghi <[email protected]> * Change pkg_indent Signed-off-by: nitin sanghi <[email protected]> * Change pkg_indent Signed-off-by: nitin sanghi <[email protected]> * version regex changed Signed-off-by: nitin sanghi <[email protected]> * windows pipeline change Signed-off-by: nitin sanghi <[email protected]> * windows pipeline change Signed-off-by: nitin sanghi <[email protected]> * windows pipeline change Signed-off-by: nitin sanghi <[email protected]> * windows pipeline change Signed-off-by: nitin sanghi <[email protected]> * Windows chef-cli hab version check Signed-off-by: nitin sanghi <[email protected]> * Windows chef-cli hab version check Signed-off-by: nitin sanghi <[email protected]> * Windows chef-cli hab version check Signed-off-by: nitin sanghi <[email protected]> * Change the message in test phase and throw error Signed-off-by: nitin sanghi <[email protected]> * Change the message in test phase and throw error Signed-off-by: nitin sanghi <[email protected]> * Hab pipeline using buildkite Signed-off-by: nitin sanghi <[email protected]> * hab build yml file added Signed-off-by: nitin sanghi <[email protected]> --------- Signed-off-by: nitin sanghi <[email protected]> --------- Signed-off-by: nitin sanghi <[email protected]> Signed-off-by: nikhil2611 <[email protected]> Co-authored-by: nikhil2611 <[email protected]> Co-authored-by: Nikhil Gupta <[email protected]> * Testing pipleine (#242) * Testing pipleine Signed-off-by: nitin sanghi <[email protected]> * Testing pipleine Signed-off-by: nitin sanghi <[email protected]> * Testing pipleine Signed-off-by: nitin sanghi <[email protected]> * Path change for test file Signed-off-by: nitin sanghi <[email protected]> * adding locales Signed-off-by: nitin sanghi <[email protected]> * adding locales Signed-off-by: nitin sanghi <[email protected]> * adding locales Signed-off-by: nitin sanghi <[email protected]> * adding locales Signed-off-by: nitin sanghi <[email protected]> * adding locales Signed-off-by: nitin sanghi <[email protected]> * adding locales Signed-off-by: nitin sanghi <[email protected]> * adding locales Signed-off-by: nitin sanghi <[email protected]> * adding locales Signed-off-by: nitin sanghi <[email protected]> * adding locales Signed-off-by: nitin sanghi <[email protected]> * adding locales Signed-off-by: nitin sanghi <[email protected]> * ignoring warn change sed regex Signed-off-by: nitin sanghi <[email protected]> * ignoring warn change sed regex Signed-off-by: nitin sanghi <[email protected]> * ignoring warn change sed regex Signed-off-by: nitin sanghi <[email protected]> * ignoring warn change sed regex Signed-off-by: nitin sanghi <[email protected]> * change version command Signed-off-by: nitin sanghi <[email protected]> * change version command Signed-off-by: nitin sanghi <[email protected]> * change version command Signed-off-by: nitin sanghi <[email protected]> * change version command Signed-off-by: nitin sanghi <[email protected]> * change version command Signed-off-by: nitin sanghi <[email protected]> * change version command Signed-off-by: nitin sanghi <[email protected]> * change version command regex Signed-off-by: nitin sanghi <[email protected]> --------- Signed-off-by: nitin sanghi <[email protected]> * Added dev channel for hab pkg (#243) Signed-off-by: nitin sanghi <[email protected]> * Added action for channel alternative (#244) Signed-off-by: nitin sanghi <[email protected]> * Version change for lts (#245) * Added action for channel alternative Signed-off-by: nitin sanghi <[email protected]> * Changing version 1.0.0 for hab pkg Signed-off-by: nitin sanghi <[email protected]> * Changing version 1.0.0 for hab pkg Signed-off-by: nitin sanghi <[email protected]> --------- Signed-off-by: nitin sanghi <[email protected]> * adding backup branch for workstation-lts Signed-off-by: Sean Simmons <[email protected]> * adding branch Signed-off-by: Sean Simmons <[email protected]> * adding expeditor agent Signed-off-by: Sean Simmons <[email protected]> * adding expeditor agent Signed-off-by: Sean Simmons <[email protected]> * Change version and constraint to same as main Signed-off-by: nitin sanghi <[email protected]> * Added one more channel and remove test from promote pipeline Signed-off-by: nitin sanghi <[email protected]> * added the channel variable Signed-off-by: nikhil2611 <[email protected]> * removed the manually created pipelines and added the channels Signed-off-by: nikhil2611 <[email protected]> * hab pkg promote change (#254) Signed-off-by: nitin sanghi <[email protected]> * Bump version to 0.1.0 by Chef Expeditor Obvious fix; these changes are the result of automation not creative thinking. * empty commit (#255) Signed-off-by: nitin sanghi <[email protected]> * Bump version to 0.1.1 by Chef Expeditor Obvious fix; these changes are the result of automation not creative thinking. * adding the pipelines to get triggered automatically Signed-off-by: nikhil2611 <[email protected]> * Bump version to 0.1.2 by Chef Expeditor Obvious fix; these changes are the result of automation not creative thinking. * empty commit to test pipelines Signed-off-by: nikhil2611 <[email protected]> * Bump version to 0.1.3 by Chef Expeditor Obvious fix; these changes are the result of automation not creative thinking. * Chef-18535- Updating configuration for a symantec version promote and publish and other fixes (#258) * updating version to major version and few plan file fixes Signed-off-by: nikhil2611 <[email protected]> * added HAB_BLDR_CHANNEL env as the build pipeline still using old hab version and updated config for a symantec version promote and publish and reverting back version and release branch changes Signed-off-by: nikhil2611 <[email protected]> * fixing the quotes Signed-off-by: nikhil2611 <[email protected]> * chefstyle fix Signed-off-by: nikhil2611 <[email protected]> * fixing spec failure Signed-off-by: nikhil2611 <[email protected]> * fixing typo in gemspec Signed-off-by: nikhil2611 <[email protected]> * updated back to omnibus_env Signed-off-by: nikhil2611 <[email protected]> --------- Signed-off-by: nikhil2611 <[email protected]> * this func is not needed as of now Signed-off-by: nikhil2611 <[email protected]> * Using the chef-test-kitchen-enterprise instead of old one Signed-off-by: Ashique Saidalavi <[email protected]> * Adding git as a pkg build dep Signed-off-by: Ashique Saidalavi <[email protected]> * Post bundle install script to setup the gems from github branches Signed-off-by: Ashique Saidalavi <[email protected]> * Added the faraday_middleware gem Signed-off-by: Ashique Saidalavi <[email protected]> * Fixed the shell-init command Signed-off-by: Ashique Saidalavi <[email protected]> * Reverted the post-bundle-install script for the windows Signed-off-by: Ashique Saidalavi <[email protected]> * Added the post-bundle-install script for windows plan file Signed-off-by: Ashique Saidalavi <[email protected]> * Updated the shell-init command to work with habitat and omnibus installations Signed-off-by: Ashique Saidalavi <[email protected]> * Spec fixes Signed-off-by: Ashique Saidalavi <[email protected]> * this file is not require Signed-off-by: nikhil2611 <[email protected]> --------- Signed-off-by: Ashique P S <[email protected]> Signed-off-by: Ashique Saidalavi <[email protected]> Signed-off-by: nitin sanghi <[email protected]> Signed-off-by: nikhil2611 <[email protected]> Signed-off-by: Sean Simmons <[email protected]> Co-authored-by: Ashique P S <[email protected]> Co-authored-by: Ashique P S <[email protected]> Co-authored-by: ns <[email protected]> Co-authored-by: Sean Simmons <[email protected]> Co-authored-by: sean-simmons-progress <[email protected]> Co-authored-by: nitin sanghi <[email protected]> Co-authored-by: Chef Expeditor <[email protected]>
1 parent 7926b1d commit d428cb1

34 files changed

+1063
-20
lines changed

.expeditor/build.habitat.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
origin: chef
3+
4+
expeditor:
5+
defaults:
6+
buildkite:
7+
retry:
8+
automatic:
9+
limit: 1
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
#!/usr/bin/env powershell
2+
3+
#Requires -Version 5
4+
# https://stackoverflow.com/questions/9948517
5+
# TODO: Set-StrictMode -Version Latest
6+
$PSDefaultParameterValues['*:ErrorAction']='Stop'
7+
$ErrorActionPreference = 'Stop'
8+
$env:HAB_BLDR_CHANNEL = "LTS-2024"
9+
$env:HAB_REFRESH_CHANNEL = "LTS-2024"
10+
$env:HAB_ORIGIN = 'ci'
11+
$env:CHEF_LICENSE = 'accept-no-persist'
12+
$env:HAB_LICENSE = 'accept-no-persist'
13+
$Plan = 'chef-cli'
14+
15+
Write-Host "--- system details"
16+
$Properties = 'Caption', 'CSName', 'Version', 'BuildType', 'OSArchitecture'
17+
Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table -AutoSize
18+
19+
Write-Host "--- Installing the version of Habitat required"
20+
21+
function Stop-HabProcess {
22+
$habProcess = Get-Process hab -ErrorAction SilentlyContinue
23+
if ($habProcess) {
24+
Write-Host "Stopping hab process..."
25+
Stop-Process -Name hab -Force
26+
}
27+
}
28+
29+
# Installing Habitat
30+
function Install-Habitat {
31+
Write-Host "Downloading and installing Habitat..."
32+
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.ps1'))
33+
}
34+
35+
try {
36+
hab --version
37+
}
38+
catch {
39+
Set-ExecutionPolicy Bypass -Scope Process -Force
40+
41+
Stop-HabProcess
42+
43+
# Remove the existing hab.exe if it exists and if you have permissions
44+
$habPath = "C:\ProgramData\Habitat\hab.exe"
45+
if (Test-Path $habPath) {
46+
Write-Host "Attempting to remove existing hab.exe..."
47+
Remove-Item $habPath -Force -ErrorAction SilentlyContinue
48+
if (Test-Path $habPath) {
49+
Write-Host "Failed to remove hab.exe, re-running script with elevated permissions."
50+
Start-Process powershell -Verb runAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`""
51+
exit
52+
}
53+
}
54+
55+
Install-Habitat
56+
}
57+
finally {
58+
Write-Host ":habicat: I think I have the version I need to build."
59+
}
60+
61+
62+
Write-Host "--- Generating fake origin key"
63+
hab origin key generate $env:HAB_ORIGIN
64+
65+
Write-Host "--- Building $Plan"
66+
$project_root = "$(git rev-parse --show-toplevel)"
67+
Set-Location $project_root
68+
69+
$env:DO_CHECK=$true; hab pkg build .
70+
71+
. $project_root/results/last_build.ps1
72+
73+
Write-Host "--- Installing $pkg_ident/$pkg_artifact"
74+
hab pkg install -b $project_root/results/$pkg_artifact
75+
76+
Write-Host "+++ Testing $Plan"
77+
78+
Push-Location $project_root
79+
80+
try {
81+
Write-Host "Running unit tests..."
82+
habitat/tests/test.ps1 $pkg_ident
83+
}
84+
finally {
85+
# Ensure we always return to the original directory
86+
Pop-Location
87+
}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#!/usr/bin/env bash
2+
3+
set -eo pipefail
4+
5+
export HAB_ORIGIN='ci'
6+
export PLAN='chef-cli'
7+
export CHEF_LICENSE="accept-no-persist"
8+
export HAB_LICENSE="accept-no-persist"
9+
export HAB_BLDR_CHANNEL="LTS-2024"
10+
export HAB_REFRESH_CHANNEL="LTS-2024"
11+
12+
echo "--- checking if git is installed"
13+
if ! command -v git &> /dev/null; then
14+
echo "Git is not installed. Installing Git..."
15+
sudo yum install -y git
16+
else
17+
echo "Git is already installed."
18+
git --version
19+
fi
20+
21+
echo "--- add an exception for this directory since detected dubious ownership in repository at /workdir"
22+
git config --global --add safe.directory /workdir
23+
24+
echo "--- git status for this workdir"
25+
git status
26+
27+
echo "--- ruby version"
28+
ruby -v
29+
30+
export project_root="$(git rev-parse --show-toplevel)"
31+
echo "The value for project_root is: $project_root"
32+
33+
export HAB_NONINTERACTIVE=true
34+
export HAB_NOCOLORING=true
35+
export HAB_STUDIO_SECRET_HAB_NONINTERACTIVE=true
36+
37+
echo "--- system details"
38+
uname -a
39+
40+
echo "--- Installing Habitat"
41+
id -a
42+
curl https://raw.githubusercontent.com/habitat-sh/habitat/main/components/hab/install.sh | bash
43+
44+
echo "--- :key: Generating fake origin key"
45+
hab origin key generate "$HAB_ORIGIN"
46+
47+
48+
echo "--- Building $PLAN"
49+
cd "$project_root"
50+
DO_CHECK=true hab pkg build .
51+
52+
echo "--- Sourcing 'results/last_build.sh'"
53+
if [ -f ./results/last_build.env ]; then
54+
cat ./results/last_build.env
55+
. ./results/last_build.env
56+
export pkg_artifact
57+
fi
58+
echo "+++ Installing ${pkg_ident:?is undefined}"
59+
echo "++++"
60+
echo $project_root
61+
echo "+++"
62+
hab pkg install -b "${project_root:?is undefined}/results/${pkg_artifact:?is undefined}"
63+
64+
echo "+++ Testing $PLAN"
65+
66+
PATH="$(hab pkg path ci/chef-cli)/bin:$PATH"
67+
export PATH
68+
echo "PATH is $PATH"
69+
70+
echo "--- :mag_right: Testing $PLAN"
71+
${project_root}/habitat/tests/test.sh "$pkg_ident" || error 'failures during test of executables'

.expeditor/config.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ rubygems:
1010
- chef-cli
1111

1212
release_branches:
13-
- workstation-LTS:
14-
version_constraint: 1.*
1513
- main:
1614
version_constraint: 5.*
1715

@@ -30,10 +28,27 @@ github:
3028
changelog:
3129
rollup_header: Changes not yet released to rubygems.org
3230

31+
artifact_channels:
32+
- unstable
33+
- chef-dke-lts2024
34+
3335
pipelines:
3436
- verify:
3537
description: Pull Request validation tests
3638
public: true
39+
- habitat/build:
40+
env:
41+
- HAB_NONINTERACTIVE: "true"
42+
- HAB_NOCOLORING: "true"
43+
- HAB_STUDIO_SECRET_HAB_NONINTERACTIVE: "true"
44+
- habitat/test:
45+
description: Execute tests against the habitat artifact
46+
definition: .expeditor/habitat-test.pipeline.yml
47+
env:
48+
- HAB_NONINTERACTIVE: "true"
49+
- HAB_NOCOLORING: "true"
50+
- HAB_STUDIO_SECRET_HAB_NONINTERACTIVE: "true"
51+
trigger: pull_request
3752

3853
subscriptions:
3954
# These actions are taken, in order they are specified, anytime a Pull Request is merged.
@@ -51,7 +66,15 @@ subscriptions:
5166
- "Expeditor: Skip All"
5267
- built_in:build_gem:
5368
only_if: built_in:bump_version
69+
- trigger_pipeline:habitat/build:
70+
only_if: built_in:bump_version
71+
ignore_labels:
72+
- "Expeditor: Skip Habitat"
73+
- "Expeditor: Skip All"
74+
75+
# this works for symantec version promote
5476
- workload: project_promoted:{{agent_id}}:*
5577
actions:
5678
- built_in:rollover_changelog
79+
- built_in:promote_habitat_packages
5780
- built_in:publish_rubygems
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
expeditor:
3+
defaults:
4+
buildkite:
5+
timeout_in_minutes: 30
6+
retry:
7+
automatic:
8+
limit: 1
9+
10+
11+
steps:
12+
13+
- label: ":linux: Validate Habitat Builds of Chef-cli"
14+
commands:
15+
- .expeditor/buildkite/artifact.habitat.test.sh
16+
expeditor:
17+
executor:
18+
docker:
19+
image: ruby:3.1
20+
privileged: true
21+
22+
- label: ":windows: Validate Habitat Builds of Test Kitchen"
23+
commands:
24+
- .expeditor/buildkite/artifact.habitat.test.ps1
25+
expeditor:
26+
executor:
27+
docker:
28+
host_os: windows
29+
shell: ["powershell", "-Command"]
30+
image: rubydistros/windows-2019:3.1
31+
user: 'NT AUTHORITY\SYSTEM'
32+
environment:
33+
- FORCE_FFI_YAJL=ext
34+
- EXPIRE_CACHE=true
35+
- CHEF_LICENSE=accept-no-persist
36+
- CHEF_LICENSE_SERVER=http://hosted-license-service-lb-8000-606952349.us-west-2.elb.amazonaws.com:8000/

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ Vagrantfile
4141
my-cookbook
4242
results/
4343
Gemfile.lock
44+
45+
46+
.idea/

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
<!-- usage documentation: https://expeditor.chef.io/docs/reference/changelog/#common-changelog -->
2-
<!-- latest_release -->
2+
<!-- latest_release 0.1.0 -->
3+
## [v0.1.0](https://github.com/chef/chef-cli/tree/v0.1.0) (2025-01-06)
4+
5+
#### Merged Pull Requests
6+
- Add hab promote pipeline [#254](https://github.com/chef/chef-cli/pull/254) ([sanghinitin](https://github.com/sanghinitin))
37
<!-- latest_release -->
48

5-
<!-- release_rollup -->
9+
<!-- release_rollup since=5.6.16 -->
10+
### Changes not yet released to rubygems.org
11+
12+
#### Merged Pull Requests
13+
- Add hab promote pipeline [#254](https://github.com/chef/chef-cli/pull/254) ([sanghinitin](https://github.com/sanghinitin)) <!-- 0.1.0 -->
614
<!-- release_rollup -->
715

816
<!-- latest_stable_release -->

Gemfile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,30 @@ source "https://rubygems.org"
33
gemspec
44

55
gem "logger", "< 1.6" # 1.6 causes errors with mixlib-log < 3.1.1
6-
6+
gem "chefspec"
77
group :test do
88
gem "rake"
9-
gem "rspec", "~> 3.8"
9+
gem "rspec", "=3.12.0"
1010
gem "rspec-expectations", "~> 3.8"
1111
gem "rspec-mocks", "~> 3.8"
1212
gem "cookstyle"
1313
gem "chefstyle"
14-
gem "test-kitchen"
14+
gem "faraday_middleware"
15+
gem "chef-test-kitchen-enterprise", git: "https://github.com/chef/chef-test-kitchen-enterprise", branch: "main"
1516
gem "simplecov", require: false
1617
end
1718

1819
group :development do
1920
gem "pry"
2021
gem "pry-byebug"
2122
gem "rb-readline"
23+
gem "appbundler"
2224
end
2325

2426
group :profile do
25-
gem "stackprof"
26-
gem "stackprof-webnav"
27-
gem "memory_profiler"
28-
end
27+
unless RUBY_PLATFORM.match?(/mswin|mingw|windows/)
28+
gem "stackprof"
29+
gem "stackprof-webnav"
30+
gem "memory_profiler"
31+
end
32+
end

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17+
#
18+
require "bundler/gem_tasks"
1719

1820
namespace :style do
1921
begin
@@ -52,3 +54,4 @@ namespace :style do
5254
puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV["CI"]
5355
end
5456
end
57+

chef-cli.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ Gem::Specification.new do |gem|
5050
gem.add_dependency "diff-lcs", ">= 1.0", "< 1.4" # 1.4 changes the output
5151
gem.add_dependency "pastel", "~> 0.7" # used for policyfile differ
5252
gem.add_dependency "license-acceptance", ">= 1.0.11", "< 3"
53+
gem.add_dependency "chef-licensing", "~> 1.0"
5354
end

0 commit comments

Comments
 (0)