puppetlabs / pdk

The shortest path to better modules: Puppet Development Kit; Download:
https://puppet.com/download-puppet-development-kit
Apache License 2.0
223 stars 104 forks source link

pdk convert erroneously adds puppet_litmus #1349

Open buzzdeee opened 2 months ago

buzzdeee commented 2 months ago

Describe the bug Running "pdk convert" on an old module ends with error:

Could not find gem 'puppet_litmus (~> 1.0) ruby, x64_mingw' with platform 'x86_64-openbsd' in locally installed
gems.

The source contains the following gems matching 'puppet_litmus (~> 1.0) ruby, x64_mingw':
  * puppet_litmus-1.3.0

pdk (FATAL): Unable to resolve Gemfile dependencies.

The Gemfile then contains section:

group :system_tests do
  gem "puppet_litmus", '~> 1.0', require: false, platforms: [:ruby, :x64_mingw]
  gem "serverspec", '~> 2.41',   require: false
end

To Reproduce seems to happen anytime.

Expected behavior pdk convert should work without error.

Additional context pdk version: 3.0.1, ruby 3.2.3 OpenBSD 7.5, amd64

Editing Gemfile and removing the puppet_litmus line fixes the problem.

buzzdeee commented 1 month ago

after updating pdk to 3.2.0, just found, pdk update does the same.