Details

    • Template:
    • Acceptance Criteria:
      Hide
      • package testing passes in CI with the test helper code to use the full path to PDK removed
      • PDK binary moved from /opt/puppetlabs/bin to /opt/puppetlabs/pdk/bin
        • Automatically handle or document upgrading from PDK 1.0
      • pdk using zsh on OSX confirmed to have no specific issues (this ticket originally reported as a zsh specific issue)
      Show
      package testing passes in CI with the test helper code to use the full path to PDK removed PDK binary moved from /opt/puppetlabs/bin to /opt/puppetlabs/pdk/bin Automatically handle or document upgrading from PDK 1.0 pdk using zsh on OSX confirmed to have no specific issues (this ticket originally reported as a zsh specific issue)
    • Epic Link:
    • Team:
      Puppet Developer Experience
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      Resolved issue:

      PDK was not automatically added to the PATH in some shells, including zsh on Mac OS X and Debian. This issue is now resolved on our supported OSes.

      Known issue:

      ### PDK not in shell PATH

      PDK is not automatically added to the PATH in some shells. To fix this, add the PATH to the affected shells:

      * For zsh on OS X, add the PATH by adding the line `eval '/usr/libexec/path_helper -s'` to to the zsh resource file (`~/.zshrc`).

      * For Debian, add a symlink to `/usr/local/bin` by running `sudo ln -sv /opt/puppetlabs/bin/pdk /usr/local/bin/`
      Show
      Resolved issue: PDK was not automatically added to the PATH in some shells, including zsh on Mac OS X and Debian. This issue is now resolved on our supported OSes. Known issue: ### PDK not in shell PATH PDK is not automatically added to the PATH in some shells. To fix this, add the PATH to the affected shells: * For zsh on OS X, add the PATH by adding the line `eval '/usr/libexec/path_helper -s'` to to the zsh resource file (`~/.zshrc`). * For Debian, add a symlink to `/usr/local/bin` by running `sudo ln -sv /opt/puppetlabs/bin/pdk /usr/local/bin/`
    • QA Risk Assessment:
      Needs Assessment

      Description

      Package testing on OSX currently passes only due to using the full path to pdk ( https://github.com/puppetlabs/pdk/blob/master/package-testing/lib/pdk/pdk_helper.rb#L18 )
      If the full path is not used, package testing fails:

      Errored Tests Cases:
        Test Case tests/validate_a_new_module.rb reported: #<Beaker::Host::CommandFailure: Host 'pttvlhrt1eevpju.delivery.puppetlabs.net' exited with 127 running:
       pdk new module c100321_module --skip-interview
      Last 10 lines of output were:
              sh: pdk: command not found>
          Test line: tests/validate_a_new_module.rb:11:in `block (3 levels) in run_test'

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                james.stocks James Stocks
                Reporter:
                david.schmitt David Schmitt
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support