-
Notifications
You must be signed in to change notification settings - Fork 105
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-1100) Exclude known artifacts from build instead of cleaning #575
Conversation
@@ -215,6 +213,8 @@ def ignored_files | |||
ignored = ignored.add("\/#{File.basename(target_dir)}\/") | |||
end | |||
|
|||
DEFAULT_IGNORED.each { |r| ignored.add(r) } |
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.
This will add duplicate entries to the ignore list if there are common ignores between the pmt/pdk/git ignore files and the defaults.
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.
Duplicates shouldn't cause an issue (just as you can have duplicate entries in a .gitignore
).
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.
True, we don't currently clear dupes from the ignore file either.
# @return nil | ||
def cleanup_module | ||
PDK::Util::Bundler.ensure_bundle! | ||
PDK::Util::Bundler.ensure_binstubs!('rake') |
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.
Does this need to re-appear somewhere?
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.
Nope, the purpose of this change is to remove the need for the in-module bundler environment when building release tarballs
By handling it in this manner, we can remove the need to call the PDK shipped
spec_clean
task. This is the only dependency on the PDK runtime environment when callingPDK::Module::Build.invoke
from outside of PDK (as needs to be done in puppetlabs_spec_helper'sbuild
rake task).