-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(PDK-1488) Inform user if updating a pinned module #816
Conversation
@@ -48,6 +48,18 @@ module PDK::CLI | |||
|
|||
updater = PDK::Module::Update.new(opts) | |||
|
|||
if updater.pinned_to_puppetlabs_template_tag? | |||
PDK.logger.info _( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potentially (not right now) the default template could be pointed to a different location via the PDK config. Should this instead be about the default
template URI instead of the puppetlabs
template URI?
@@ -7,6 +7,7 @@ class TemplateURI | |||
|
|||
PACKAGED_TEMPLATE_KEYWORD = 'pdk-default'.freeze | |||
DEPRECATED_TEMPLATE_URL = 'https://github.com/puppetlabs/pdk-module-template'.freeze | |||
PDK_TEMPLATE_URL = 'https://github.com/puppetlabs/pdk-templates'.freeze |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a semi-duplicate of
pdk/lib/pdk/util/template_uri.rb
Line 133 in bd5e6ce
Addressable::URI.new(scheme: 'https', host: 'github.com', path: '/puppetlabs/pdk-templates') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it is can we just Addressable::URI.new(PDK_TEMPLATE_URL)
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending Green CI
No description provided.