Skip to content

Commit

Permalink
fix(cachi2): copy all files generated by cachi2
Browse files Browse the repository at this point in the history
Rubygems package manager contains data also out of deps/ and app/
directory. The whole remote dir must be copied.

For rubygems, bundler config file hasn't been copied.

Signed-off-by: Martin Basti <mbasti@redhat.com>
  • Loading branch information
MartinBasti committed Dec 3, 2024
1 parent 3986cdc commit f619475
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions atomic_reactor/plugins/cachi2_postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,8 @@ def inject_into_build_dir(
"copy method used for cachi2 build_dir_injecting: %s", copy_method.__name__)

copytree(
remote_source.sources_path/'app', dest_dir/'app',
symlinks=True, copy_function=copy_method)
copytree(
remote_source.sources_path/'deps', dest_dir/'deps',
symlinks=True, copy_function=copy_method)
remote_source.sources_path, dest_dir,
symlinks=True, copy_function=copy_method, dirs_exist_ok=True)

# Create cachito.env file with environment variables received from cachito request
self.generate_cachito_env_file(dest_dir, remote_source.build_args)
Expand Down

0 comments on commit f619475

Please sign in to comment.