Closed zb226 closed 9 months ago
I would suggest updating windows (you seem to be on something from 2019?) or installing bsdtar separately. https://github.com/ugexe/zef/pull/508
@ugexe It's the most recent version of Windows 10 I believe, corresponding to:
[Edit: better link directly to M$]
Windows 10 version 22H2-10.0.19045.3570 / KB5031356 / 10th October 2023
The bsdtar is available on the PATH
:
C:\>where tar
C:\Windows\System32\tar.exe
C:\>tar --version
bsdtar 3.5.2 - libarchive 3.5.2 zlib/1.2.5.f-ipp
Ah, I misunderstood your original post which said unzip
when in actuality it is working with a .tar.gz
file. That being said I think you may have been correct in your hunch about symlinks on Windows. You could try downloading the distribution (the url should be shown when using --debug
) and then manually extracting it using the tar
command. If this is the case then a YAMLish
issue would probably be appropriate.
You might also try zef install https://github.com/Leont/yamlish.git
and/or zef install https://github.com/Leont/yamlish/archive/refs/heads/master.tar.gz
to see if it is an issue with how REA is archiving the distribution.
Manual extraction shows the problem is with those symlinks:
C:\temp>tar xvfz YAMLish%3Aver%3C0.0.6%3E%3Aauth%3Cgithub%3ALeont%3E.tar.gz
x yamlish-master/
(...)
x yamlish-master/test-suite/meta/229Q.label: Can't create '\\\\?\\C:\\temp\\yamlish-master\\test-suite\\meta\\229Q.label'
x yamlish-master/test-suite/meta/236B.label: Can't create '\\\\?\\C:\\temp\\yamlish-master\\test-suite\\meta\\236B.label'
(...)
x yamlish-master/xt/spec.t
tar: Error exit delayed from previous errors.
...but direct install from the repo root works fine!
C:\temp>zef install https://github.com/Leont/yamlish.git
===> Staging YAMLish:ver<0.0.6>
===> Staging [OK] for YAMLish:ver<0.0.6>
===> Testing: YAMLish:ver<0.0.6>
===> Testing [OK] for YAMLish:ver<0.0.6>
===> Installing: YAMLish:ver<0.0.6>
Direct install from the master.tar.gz
has the same problems as before.
Should I open an issue somewhere else?
Thanks for helping out!
My guess is git
on windows does something differently for representing symlinks than e.g. the tar
command. I'd probably open an issue with YAMLish
suggesting to not use symlinks. It may also be worth mentioning in some Raku document somewhere that distributions should not contain symlinks if they are expected to be platform agnostic.
The installation errors out when the archive should be unzipped:
Context
Elizabeth Mattijsen sent me over here after I've asked a question about this on SO.
Expected Behavior
Should install the module.
Actual Behavior
Does not install the module.
Steps to Reproduce
or
Your Environment