Thank you for the pointer, now the module does validate using 1.2.1 from the xenial deb. I checked validation against the commit in my gist as well as current master (fe01174).
For posterity, a diff of the working Gemfile.lock against the previous file from my failed validation shows a few differences in the working version. https://gist.github.com/christopherwood/01aec6a03fa500fcaa02be7e4c83a2fe At my level of experience I suspect I may have tried the validation with an empty $HOME/.pdk right when some gems were being shuffled around. On Tue, Oct 31, 2017 at 02:22:47PM +0000, David Schmitt wrote: > Hi Christopher, > > I'm running the xenial packages on Debian testing myself, and have no > issues with running the pdk validation of the puppetlabs-ntp module. If I > use the Gemfile.lock from your log instead of a clean one, I get the same > error. Please remove the Gemfile.lock and try again. > > Cheers, David > On Thu, Oct 26, 2017 at 5:19 PM Christopher Wood > <[1][email protected]> wrote: > > I'm not sure if this is an issue, or something I'm doing, since I'm > trying to use Ubuntu debs on patched-up Debian 9. The question: Is this > PEBKAC or what? > > To wit, I get a fatal error when attempting "pdk validate -d" and "pdk > test unit -d" at 1215f02 of the puppetlabs-ntp module. This happens in > the same manner with the following debs. > > pdk_1.2.0.0-1trusty_amd64.deb > pdk_1.2.0.0-1xenial_amd64.deb > > These gists are typescript sessions of me reproducing the issue: > > > [2]https://gist.github.com/christopherwood/d2ac5542a3cdbf80cba7eaac6135ef14 > > [3]https://gist.github.com/christopherwood/05f60e9f87465e73730606d8870065e7 > > I think the issue boils down to these lines: > > pdk (FATAL): The dependency puppet-module-win-default-r2.1 (>= 0) will > be unused by any of the platforms Bundler is installing for. Bundler is > installing for ruby but the dependency is only for x86-mswin32, > x86-mingw32, x64-mingw32. To add those platforms to the bundle, run > `bundle lock --add-platform x86-mswin32 x86-mingw32 x64-mingw32`. > The dependency puppet-module-win-dev-r2.1 (= 0.0.7) will be unused by > any of the platforms Bundler is installing for. Bundler is installing > for ruby but the dependency is only for x86-mswin32, x86-mingw32, > x64-mingw32. To add those platforms to the bundle, run `bundle lock > --add-platform x86-mswin32 x86-mingw32 x64-mingw32`. > The dependency puppet-module-win-system-r2.1 (>= 0) will be unused by > any of the platforms Bundler is installing for. Bundler is installing > for ruby but the dependency is only for x86-mswin32, x86-mingw32, > x64-mingw32. To add those platforms to the bundle, run `bundle lock > --add-platform x86-mswin32 x86-mingw32 x64-mingw32`. > > When I do "gem install --user-install puppet-module-win-default-r2.1" on > my system ruby 2.3.3p222 it installs with no issues. However the Gemfile > in the puppetlabs-ntp module specifies > > :require => false, :platforms => ["mswin", "mingw", "x64_mingw"] > > and for some reason that appears to cause an issue here. > > I haven't really used bundler so definitely puzzled. > > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [4][email protected]. > To view this discussion on the web visit > > [5]https://groups.google.com/d/msgid/puppet-users/20171026161936.27u6hl22k2v5olbi%40iniquitous.heresiarch.ca. > For more options, visit [6]https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [7][email protected]. > To view this discussion on the web visit > > [8]https://groups.google.com/d/msgid/puppet-users/CALF7fHZw3AzDv3th%2BQyH7ndBPvbx3ggbQunprYTub5snHubRkA%40mail.gmail.com. > For more options, visit [9]https://groups.google.com/d/optout. > > References > > Visible links > 1. mailto:[email protected] > 2. https://gist.github.com/christopherwood/d2ac5542a3cdbf80cba7eaac6135ef14 > 3. https://gist.github.com/christopherwood/05f60e9f87465e73730606d8870065e7 > 4. mailto:puppet-users%[email protected] > 5. > https://groups.google.com/d/msgid/puppet-users/20171026161936.27u6hl22k2v5olbi%40iniquitous.heresiarch.ca > 6. https://groups.google.com/d/optout > 7. mailto:[email protected] > 8. > https://groups.google.com/d/msgid/puppet-users/CALF7fHZw3AzDv3th%2BQyH7ndBPvbx3ggbQunprYTub5snHubRkA%40mail.gmail.com?utm_medium=email&utm_source=footer > 9. https://groups.google.com/d/optout -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20171031153609.g2c6d4ejqgkzespf%40iniquitous.heresiarch.ca. For more options, visit https://groups.google.com/d/optout.
