Skip to content

Commit 53e70fc

Browse files
sanghinitinnikhil2611
authored andcommitted
Added vendor bin path in exec
Signed-off-by: nitin sanghi <[email protected]>
1 parent ff192d3 commit 53e70fc

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
@@ -177,6 +177,7 @@ def habitat_env(show_warning: false)
177177
# Construct PATH
178178
path = [
179179
File.join(bin_pkg_prefix, "bin"),
180+
File.join(bin_pkg_prefix, "vendor", "bin"),
180181
ENV["PATH"].split(File::PATH_SEPARATOR), # Preserve existing PATH
181182
].flatten.uniq
182183

0 commit comments

Comments
 (0)