This allows podman to import the copier package on the remote client
without needing the full libimage package.
Based on Miloslav's work: https://github.com/containers/podman/pull/19718
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Digging the UID and GID out of an os.FileInfo should work on all Unixy
systems, so move it from Linux-specific implementation file to a file
that we also build for Darwin.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Detect files that are hard linked together, and use that information to
avoid copying their contents more often than we have to.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Closes: #1789
Approved by: rhatdan