Open
Description
From my analysis of the problem in codehaus-plexus/plexus-archiver#160 (comment) changes in plexus-io are needed to support following symbolic links to files (not directories).
We can track the plexus-io part here.
Metadata
Metadata
Assignees
Labels
No labels
Activity
try
mirabilos commentedon Jan 8, 2021
I think I’ve got it; for plexus-io even configurable (following the already extant follow-symlinks setting). I’ll provide a PR shortly.
Support following symbolic links to files
plamentotev commentedon Jan 9, 2021
While it may not be intuitive I think
PlexusIoFileResourceCollection
works as intended. This collection return a collection of files as they are on the file system. This includes symlinks. It is up to the caller to decide how to handle symlinks. The flag affect only dirs as it affects which files are going to be included.I think it would be better to keep the collection as it is, but while compressing Plexus Archiver should follow the symlink instead of adding it to the archive..
mirabilos commentedon Jan 9, 2021
I don’t think so. It already includes a “follow symlinks” mode, which just doesn’t work “right”, it only follows symlinks to directories, which I haven’t seen anywhere else.
I replied in more detail in codehaus-plexus/plexus-archiver#160 (comment)
plamentotev commentedon Mar 3, 2021
Now that I had time to look again on the pull request it does make sense. I'm only concerned that it changes the default behavior of a code that existed for quite some time. Callers that haven't set the follow sym links flag at all will not get the sym links. That may break existing applications without them even knowing they are affected by the change.
mirabilos commentedon Apr 18, 2021
Revert "experiment to see whether we can revert to upstream plexus-io"