You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
If we change C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/defaults/operating_system.rb as below, this fixes chef gem list and chef exec knife windows cert generate for the circumstance where knife doesn't find the gem in the user-install directory.
I'm suspecting the rubygems try_activate error is related but you have to have a ~/.chefdk directory to repro it, which I've deleted during this testing process. I'm going to recreate it and go back for another test run now.
Repro output for fix below:
# install chefdk 0.7 nightly
PS C:\Users\btm_000> chef gem list knife-windows
*** LOCAL GEMS ***
knife-windows (0.8.5)
PS C:\Users\btm_000> chef gem install knife-windows -v 1.0.0.rc.1
Fetching: winrm-s-0.3.0.gem (100%)
WARNING: You don't have c:\users\btm_000\appdata\local\chefdk\gem\ruby\2.1.0\bin in your PATH,
gem executables will not run.
Successfully installed winrm-s-0.3.0
Fetching: knife-windows-1.0.0.rc.1.gem (100%)
Successfully installed knife-windows-1.0.0.rc.1
Parsing documentation for winrm-s-0.3.0
Installing ri documentation for winrm-s-0.3.0
Parsing documentation for knife-windows-1.0.0.rc.1
Installing ri documentation for knife-windows-1.0.0.rc.1
Done installing documentation for winrm-s, knife-windows after 1 seconds
2 gems installed
PS C:\Users\btm_000> chef gem list knife-windows
*** LOCAL GEMS ***
knife-windows (0.8.5)
PS C:\Users\btm_000> chef gem uninstall knife-windows -v 0.8.5
Successfully uninstalled knife-windows-0.8.5
PS C:\Users\btm_000> chef gem list knife-windows
*** LOCAL GEMS ***
###
### patch C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/defaults/operating_system.rb
###
PS C:\Users\btm_000> chef gem list knife-windows
*** LOCAL GEMS ***
knife-windows (1.0.0.rc.1)
The text was updated successfully, but these errors were encountered:
@jaym, something is having a hard time with backslashes. I found this debugging #411
From
chef gem env
:If we change
C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/defaults/operating_system.rb
as below, this fixeschef gem list
andchef exec knife windows cert generate
for the circumstance where knife doesn't find the gem in the user-install directory.I'm suspecting the rubygems try_activate error is related but you have to have a ~/.chefdk directory to repro it, which I've deleted during this testing process. I'm going to recreate it and go back for another test run now.
Repro output for fix below:
The text was updated successfully, but these errors were encountered: