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

Only package a static list of files #908

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jun 24, 2024

This copies the static list of files from the plugin template. It avoids calling git, which means it works in more environments, but it can cause local files not tracked in git to be included. test_files is avoided because it's deprecated.

Primary motivation was packit builds where we temporarily need to include gemfile.d to test against another PR, but don't want that to show up in the final packit RPMs.

This copies the static list of files from the plugin template. It avoids
calling git, which means it works in more environments, but it can cause
local files not tracked in git to be included. test_files is avoided
because it's deprecated.

Primary motivation was packit builds where we temporarily need to
include gemfile.d to test against another PR, but don't want that to
show up in the final packit RPMs.
@ekohl
Copy link
Member Author

ekohl commented Jun 24, 2024

Looks like we need to remove the files from the spec file too:

error: File not found: /builddir/build/BUILDROOT/rubygem-foreman_remote_execution-13.2.1-1.20240624154646537200.pr908.1.gbcd1648.el9.x86_64/usr/share/gems/gems/foreman_remote_execution-13.2.1/Gemfile
error: File not found: /builddir/build/BUILDROOT/rubygem-foreman_remote_execution-13.2.1-1.20240624154646537200.pr908.1.gbcd1648.el9.x86_64/usr/share/gems/gems/foreman_remote_execution-13.2.1/foreman_remote_execution.gemspec
error: File not found: /builddir/build/BUILDROOT/rubygem-foreman_remote_execution-13.2.1-1.20240624154646537200.pr908.1.gbcd1648.el9.x86_64/usr/share/gems/gems/foreman_remote_execution-13.2.1/test
    File not found: /builddir/build/BUILDROOT/rubygem-foreman_remote_execution-13.2.1-1.20240624154646537200.pr908.1.gbcd1648.el9.x86_64/usr/share/gems/gems/foreman_remote_execution-13.2.1/jsconfig.json
    absolute symlink: /usr/share/foreman/public/assets/foreman_remote_execution -> /usr/share/gems/gems/foreman_remote_execution-13.2.1/public/assets/foreman_remote_execution
    absolute symlink: /usr/share/foreman/public/webpack/foreman_remote_execution -> /usr/share/gems/gems/foreman_remote_execution-13.2.1/public/webpack/foreman_remote_execution
    File not found: /builddir/build/BUILDROOT/rubygem-foreman_remote_execution-13.2.1-1.20240624154646537200.pr908.1.gbcd1648.el9.x86_64/usr/share/gems/gems/foreman_remote_execution-13.2.1/Gemfile
    File not found: /builddir/build/BUILDROOT/rubygem-foreman_remote_execution-13.2.1-1.20240624154646537200.pr908.1.gbcd1648.el9.x86_64/usr/share/gems/gems/foreman_remote_execution-13.2.1/foreman_remote_execution.gemspec
    File not found: /builddir/build/BUILDROOT/rubygem-foreman_remote_execution-13.2.1-1.20240624154646537200.pr908.1.gbcd1648.el9.x86_64/usr/share/gems/gems/foreman_remote_execution-13.2.1/test

@ekohl ekohl marked this pull request as draft June 25, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant