Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gem resource :chef symbol isn't valid on Windows #1645

Closed
kpersohn opened this issue Apr 11, 2017 · 1 comment
Closed

gem resource :chef symbol isn't valid on Windows #1645

kpersohn opened this issue Apr 11, 2017 · 1 comment
Labels
Type: Bug Feature not working as expected

Comments

@kpersohn
Copy link

kpersohn commented Apr 11, 2017

Description

On Windows platforms, :chef does not resolve to the correct gem_binary location causing InSpec to fail to find gems installed to Chef Omnibus embedded Ruby.

InSpec and Platform Version

1.19.1
Windows 7 x64

Replication Case

  describe gem('chef-vault', :chef) do
    it { should be_installed }
  end

fails; however this works:

  describe gem('chef-vault', 'C:\opscode\chef\embedded\bin\gem.cmd') do
    it { should be_installed }
  end

Possible Solutions

Perhaps https://github.com/chef/inspec/blob/master/lib/resources/gem.rb#L26 just needs .cmd appended?

@nvwls Thoughts?

@chris-rock chris-rock added the Type: Bug Feature not working as expected label Apr 12, 2017
@adamleff adamleff self-assigned this Apr 12, 2017
@adamleff
Copy link
Contributor

@kpersohn thanks for submitting this issue! I've put forth #1650 to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

No branches or pull requests

3 participants