Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-1172

you must pdk bundle before bundle install

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PDK 1.8.0
    • None
    • windows 10

      ruby --version
      ruby 2.4.3p205 (2017-12-14 revision 61247) [x64-mingw32]

    • Needs Assessment
    • Bug Fix
    • PDK will now call set up the ruby/bundler environment upon completing `pdk new module`. This will prevent any ruby issues when calling pdk build or pdk bundle.
    • Needs Assessment

    Description

      Summary
      It is not enough to run bundle install inside a PDK generated module. You must run pdk bundle first.

      Detail
      On windows, I would like to be able to run bundle install against a PDK generated module so that I can run additional tools. This ticket is to tell anyone else attempting the same thing that to run pdk bundle to generate a magic Gemfile.lock before bundle install will work.

      Steps to reproduce
      1. Install ruby 2.4: {{choco install ruby --version 2.4.3.1 }} (must use 2.4 because PDK-1171)
      2. Install pdk: choco install pdk
      3. Generate a module pdk new module and follow the interview
      4. bundle install

      Now you receive a series of errors that can only be fixed by first running pdk bundle to generate a "fixed" Gemfile.lock. See narrative screenshots:






      Desired improvement
      Please could pdk bundle be more thoroughly documented, along with details of when/why it needs to be run and what else (if anything) it is doing

      Attachments

        1. pdk-bundle-magic-1.png
          pdk-bundle-magic-1.png
          52 kB
        2. pdk-bundle-magic-2.png
          pdk-bundle-magic-2.png
          46 kB
        3. pdk-bundle-magic-3.png
          pdk-bundle-magic-3.png
          37 kB
        4. pdk-bundle-magic-4.png
          pdk-bundle-magic-4.png
          47 kB
        5. pdk-bundle-magic-5.png
          pdk-bundle-magic-5.png
          37 kB
        6. pdk-bundle-magic-6.png
          pdk-bundle-magic-6.png
          37 kB

        Issue Links

          Activity

            People

              tim.sharpe Tim Sharpe
              geoff@declarativesystems.com Geoff Williams
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support