Skip to content

Commit 6ccaa38

Browse files
committed
Added vendor bin path in exec
Signed-off-by: nitin sanghi <[email protected]>
1 parent e99c0d4 commit 6ccaa38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

habitat/plan.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ do_setup_environment() {
2222
}
2323
do_prepare() {
2424
ln -sf "$(pkg_interpreter_for core/ruby3_1 bin/ruby)" "$(pkg_interpreter_for core/coreutils bin/env)"
25-
echo "$(pkg_interpreter_for core/ruby3_1 bin/ruby)"
2625
}
2726
pkg_version() {
2827
cat "$SRC_PATH/VERSION"
@@ -46,7 +45,7 @@ do_build() {
4645
bundle config --local silence_root_warning 1
4746
bundle install
4847
gem build chef-cli.gemspec
49-
gem install rspec-core
48+
gem install rspec-core -v '~> 3.12.3'
5049
ruby ./post-bundle-install.rb
5150
}
5251
do_install() {

lib/chef-cli/helpers.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def habitat_env
138138
vendor_dir = File.join(get_pkg_prefix(ChefCLI::Dist::HAB_PKG_NAME), "vendor")
139139
path = [
140140
File.join(bin_pkg_prefix, "bin"),
141+
File.join(bin_pkg_prefix, "vendor", "bin"),
141142
ENV["PATH"].split(File::PATH_SEPARATOR), # Preserve existing PATH
142143
].flatten.uniq
143144

0 commit comments

Comments
 (0)