Skip to content

Commit 8eb05f3

Browse files
author
Sachin
committed
add force_ruby_platform to use via bundle install
Signed-off-by: Sachin <sachin.jain@chef.io>
1 parent dd32ed1 commit 8eb05f3

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

habitat/plan.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function Invoke-Build {
4343
bundle config --local jobs 4
4444
bundle config --local retry 5
4545
bundle config --local silence_root_warning 1
46+
bundle config set --local force_ruby_platform false
4647
Write-BuildLine " ** Using bundler to retrieve the Ruby dependencies"
4748
bundle install
4849

@@ -67,7 +68,7 @@ function Invoke-Install {
6768
Push-Location $pkg_prefix
6869
bundle config --local gemfile $project_root/Gemfile
6970
Write-BuildLine "** generating binstubs for chef-cli with precise version pins"
70-
Write-BuildLine "** generating binstubs for chef-cli with precise version pins $project_root $pkg_prefix/bin "
71+
Write-BuildLine "** generating binstubs for chef-cli with precise version pins $project_root $pkg_prefix/bin "
7172
Invoke-Expression -Command "appbundler.bat $project_root $pkg_prefix/bin chef-cli"
7273
If ($lastexitcode -ne 0) { Exit $lastexitcode }
7374
Write-BuildLine " ** Running the chef-cli project's 'rake install' to install the path-based gems so they look like any other installed gem."

pr_description.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<h2>Summary of Changes</h2>
2+
<p>Fixed chef exec and env commands not working properly in Windows environments.</p>
3+
4+
<h2>Jira Ticket</h2>
5+
<p><a href="https://jira.progress.com/browse/CHEF-25203">CHEF-25203</a></p>
6+
7+
<h2>Changes Made</h2>
8+
<ul>
9+
<li>Updated <code>lib/chef-cli/helpers.rb</code> to properly handle Windows-specific command execution</li>
10+
<li>Fixed command escaping and quoting for Windows platform compatibility</li>
11+
</ul>
12+
13+
<h2>Testing Performed</h2>
14+
<ul>
15+
<li>Verified chef exec command works correctly on Windows</li>
16+
<li>Verified chef env command works correctly on Windows</li>
17+
<li>Ensured backward compatibility with existing Unix/Linux systems</li>
18+
</ul>

0 commit comments

Comments
 (0)