bitter-ability-32190
04/21/2022, 4:28 PMError expanding output globs: Failed to read link ... Absolute symlink
(FWIW I'm invoking the Process
myself and not using the ExtractedArchive
rule).
Any way to tell pants to ignore absolute symlinks? Or should I hand-pick output_directories
?bitter-ability-32190
04/21/2022, 4:39 PM--exclude
to tar
. This should probably be upstreamed along with:
• adding lz4
support (or really any -I
option)
• adding the ability to choose extraction method for arbitrary extensionswitty-crayon-22786
04/21/2022, 4:40 PMbitter-ability-32190
04/21/2022, 4:41 PMError expanding output globs: Failed to read link "/tmp/process-executionhxcvDG/__extract_archive_dir/somedir/tools/python/python": Absolute symlink: "/usr/bin/python2.7"
witty-crayon-22786
04/21/2022, 4:42 PMbitter-ability-32190
04/21/2022, 4:42 PM--exclude python
worked linke a charm in unblocking. 🙈witty-crayon-22786
04/21/2022, 4:43 PMwitty-crayon-22786
04/21/2022, 4:44 PMbitter-ability-32190
04/21/2022, 4:44 PMwitty-crayon-22786
04/21/2022, 4:55 PMbitter-ability-32190
04/21/2022, 4:56 PMwitty-crayon-22786
04/21/2022, 4:56 PMbitter-ability-32190
04/21/2022, 4:57 PMwitty-crayon-22786
04/21/2022, 4:57 PMwitty-crayon-22786
04/21/2022, 4:57 PMwitty-crayon-22786
04/21/2022, 4:57 PMwitty-crayon-22786
04/21/2022, 4:58 PMbitter-ability-32190
04/21/2022, 4:58 PMbitter-ability-32190
04/21/2022, 4:58 PMwitty-crayon-22786
04/21/2022, 4:59 PMthey would be captured as filesboth the new and old behavior is that symlinks are captured as files. but the old behavior is that they cannot escape the sandbox. the new behavior would mean that we would just not ever check whether something was a symlink
bitter-ability-32190
04/21/2022, 4:59 PMbitter-ability-32190
04/21/2022, 5:00 PMwitty-crayon-22786
04/21/2022, 5:00 PMstat
(in this codepath) rather than `lstat`ing, so we’d never observe the symlink.fast-nail-55400
04/21/2022, 5:05 PMfast-nail-55400
04/21/2022, 5:06 PMwitty-crayon-22786
04/21/2022, 5:06 PM