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

`pdk update` should warn if pinned to old version of template

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: PDK 1.15.0
    • Component/s: None
    • Template:
    • Acceptance Criteria:
      Hide
      • When a user has pinned their template to an old version of PDK, it should be clear to them why `pdk update` is not modifying their module.
      • It should also be clear to the user how to resolve the situation if they want to start tracking the latest changes.
      Show
      When a user has pinned their template to an old version of PDK, it should be clear to them why `pdk update` is not modifying their module. It should also be clear to the user how to resolve the situation if they want to start tracking the latest changes.
    • Team:
      Puppet Developer Experience
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      `pdk update` will check if the module is pinned to a template version and inform the user if so and tell them how to unpin the template version.
    • QA Risk Assessment:
      Needs Assessment

      Description

      If a user has as some point used the `--template-ref` option to manually pin their template ref to a version tag, `pdk update` will no longer track template versions using `pdk --version`, so the user will no longer be updating their module.

      We should consider at least issuing a WARN if the tracked `template-ref` in metadata.json looks like a version tag, but does not == the value of `pdk --version` so that the user will know why their module is not updating. The warning should also include directions for how to resolve the situation.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tim.sharpe Tim Sharpe
              Reporter:
              jesse Jesse Scott
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support