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

Explicitly list files and dirs included in gemspec (test_)files #299

Merged
merged 1 commit into from
May 2, 2024

Conversation

dosas
Copy link
Contributor

@dosas dosas commented May 2, 2024

With the catch all approach there were a lot of files included that do not need to be in the gem. I.e. Jenkinsfile, all dot files and dirs related to CI configuration, and rubocop linting ...

This causes problems when i.e. building rpm packages where all of these files need to be explicitly excluded: see https://github.com/theforeman/foreman-packaging/blob/rpm/develop/packages/foreman/rubygem-fog-vsphere/rubygem-fog-vsphere.spec#L50

@chris1984
Copy link
Collaborator

@dosas can you rebase this on the 2 pr's of yours I just merged, to see if the tests go green?

@dosas dosas force-pushed the whitelist-gemspec branch from 6ca64b8 to 3d93d18 Compare May 2, 2024 12:55
@dosas
Copy link
Contributor Author

dosas commented May 2, 2024

@dosas can you rebase this on the 2 pr's of yours I just merged, to see if the tests go green?

Done

@dosas
Copy link
Contributor Author

dosas commented May 2, 2024

@chris1984 I would like to add this approach to all fog-* repos, what do you think?

@chris1984
Copy link
Collaborator

chris1984 commented May 2, 2024

Contributor

Yeah I thnk this is a great idea, thanks for helping out here. I don't have merge access on the others, but I would think it would be accepted.

@dosas
Copy link
Contributor Author

dosas commented May 2, 2024

There is still a typo

with the catch all approach there were a lot of files included
that do not need to be in the gem. I.e. Jenkinsfile all dot files
and dirs related to CI configuration and rubocop linting ...

This causes problems whe i.e. building rpm packages
where all of these files need to be explicitly excluded.
@dosas dosas force-pushed the whitelist-gemspec branch from 3d93d18 to 32084a6 Compare May 2, 2024 13:01
@dosas
Copy link
Contributor Author

dosas commented May 2, 2024

There is still a typo

Fixed

@chris1984 chris1984 merged commit 4a7f4e7 into fog:master May 2, 2024
4 of 5 checks passed
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