Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
-
Puppet Developer Experience
-
Needs Assessment
-
Known Issue
-
When creating or converting a module, and there is a saved template-url value in the answers file, the PDK will now check that the repository specified in the template-url answer exists and fall back to using the default template if it doesn't.
-
Needs Assessment
Description
The cached answer file is no longer syncing properly with the actual template used with the pdk.
Steps to replicate:
vim ~/.pdk/cache/answers.json
|
Run the above command and change the template url to the old template repo like so:
"template-url": "https://github.com/puppetlabs/pdk-module-template",
Then run your local pdk against a module using the 'convert' command.
Check the details within metadata.json and you can see the values won't match the template actually used:
"template-url": "https://github.com/puppetlabs/pdk-templates", |
"template-ref": "1.3.0-0-g632fa63" |
A solution is to possibly remove this key from the answers file entirely - else we need to make sure this value is actually up to date with the template used.