Skip to content
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

Don't ship spec directory, Rakefile or Gemfile in packaged modules #680

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

alexjfisher
Copy link
Member

This should make the average module a fair bit smaller.
PDK already does this by default.
https://github.com/puppetlabs/pdk-templates/blob/172738acbf55e65afb1eb8541deb8bb242ca877b/config_defaults.yml#L57

@alexjfisher
Copy link
Member Author

It might look innocent enough, but this is quite a big change. Even if you think this is a great idea, please don't merge just yet. But please leave feedback.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Foreman's modulesync we do the same:
https://github.com/theforeman/foreman-installer-modulesync/blob/8e29149d17efd144371d5c46baff9f04fbb79141/moduleroot/.pmtignore.erb#L51
Haven't heard any complaints.

You may also want to drop the Gemfile and Rakefile.

@alexjfisher alexjfisher changed the title Don't ship spec directory in packaged modules Don't ship spec directory, Rakefile or Gemfile in packaged modules Oct 31, 2020
@alexjfisher
Copy link
Member Author

In Foreman's modulesync we do the same:
https://github.com/theforeman/foreman-installer-modulesync/blob/8e29149d17efd144371d5c46baff9f04fbb79141/moduleroot/.pmtignore.erb#L51
Haven't heard any complaints.

You may also want to drop the Gemfile and Rakefile.

Good plan. This also matches the PDK behaviour.

@ekohl
Copy link
Member

ekohl commented Nov 5, 2020

Would you mind rebasing the PR?

Don't ship the `spec` directory, `Gemfile`, or `Rakefile`.

This should make the average module a fair bit smaller.
PDK already does this by default.
https://github.com/puppetlabs/pdk-templates/blob/172738acbf55e65afb1eb8541deb8bb242ca877b/config_defaults.yml#L57
@ekohl ekohl merged commit 6c19f61 into voxpupuli:master Nov 10, 2020
@alexjfisher alexjfisher deleted the dont_package_spec branch November 10, 2020 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants