-
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-715) Use correct module template branch/ref #368
Conversation
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.
Had one comment about what development_mode?
is checking but other than that this seems fine for now.
lib/pdk/util.rb
Outdated
def development_mode? | ||
PDK::VERSION.end_with? 'pre' | ||
end | ||
module_function :development_mode? |
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.
Should this maybe test if the code is part of a git checkout or something 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.
It could, but that could complicate matters if we (or others) attempt to run a tag from source for a repro or something? I think ultimately, the simplicity of just checking whether we're on an "official" version or a dev/preview version is more explicit. I could go either way.
19a2488
to
18175b1
Compare
This seems like it breaks anyone using a custom template repo that doesn't have the hard coded version/ref. Does just adding and plumbing through a |
For gem installs, we need to make sure they use a compatible module-template version, similar to what we do for package installs in our build process. For development, we still want to use the default git branch.
For gem installs, we need to make sure they use a compatible
module-template version, similar to what we do for package installs
in our build process. For development, we still want to use the
default git branch.