Commit 2d76d7b
committed
Fall back to copy when File.symlink raises TypeError on Windows
Gem::Package#create_symlink already falls back to FileUtils.cp_r on
Windows when symlink creation hits Errno::EACCES (Developer Mode off),
but JRuby 10.1 surfaces the same failure as TypeError from its
internal wincode path helper. Treat TypeError as the same recoverable
condition so JRuby/Windows users extracting a tarball that ships
symlinks get the copy fallback rather than a crash.1 parent 88f5e29 commit 2d76d7b
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
| 746 | + | |
| 747 | + | |
746 | 748 | | |
747 | 749 | | |
748 | | - | |
| 750 | + | |
749 | 751 | | |
750 | 752 | | |
751 | 753 | | |
| |||
0 commit comments