Closed andinus closed 2 years ago
I need to test this fix on OSX and it should be good to go
@andinus this should be fixed, pushing it right now
No idea why this keeps getting closed.
tony-o: Merging a PR or pushing a commit with the message containing "fix[es]? #some_number" triggers GitHub to automatically close the respective issue.
The first one I understood, the second one I'm unsure
It still fails to find META6.json
.
andinus@hafnium ~/projects/caelum> fez upload
>>= Looking in "sdist/NgBSEb9Z.tar.gz" for META6.json
=<< Unable to verify meta, no tar found.
>>= Upload anyway (y/N)? ^C
andinus@hafnium ~/projects/caelum> tar tvzf sdist/NgBSEb9Z.tar.gz
[...]
-rw-rw-r-- 1 root wheel 577 Apr 29 13:15 META6.json
[...]
Looking at this it seems to an issue with openbsd's tar, @andinus i'm not as familiar with openbsd - is there a way to cat a file from the archive directly with tar?
In the meantime you should be able to upload anyway
and you'll get an email about what fails in that package if it can't be indexed
I don't think it is possible with bsdtar
.
upload anyway
works. There is gtar
in ports, so we could do something like:
if bsd - run `which tar`
- if exits with 2 - say "gtar not found - use `upload anyway`"
- if exits with 0 - use gtar
Seem like a reasonable compromise to suggest a skip if BSD and no gtar found?
I would say yes. If fez checks for files before the archive creation then we're just trusting bsdtar
to return correct exit code. If it returns 0, we assume files are present in the archive & skip the check.
I recall this working on OpenBSD earlier but now it exits without prompting for Upload anyway
:
andinus@ ~/d/p/fornax (main)> fez upload
>>= Looking in "sdist/UUuP9ND3.tar.gz" for META6.json
=<< Unable to find META6.json
Symlinking gtar
to tar
fixes this.
@andinus can you checkout the pax
branch and see if this resolves the issue for you?
It works! Thanks!
...> fez upload
>>= Looking in "sdist/zQ4Xrjde.tar.gz" for META6.json
>>= meta<provides> looks OK
>>= meta<resources> looks OK
>>= orion:ver<0.2.4>:auth<zef:andinus> looks OK
>>= Hey! You did it! Your dist will be indexed shortly.
However, it does not remove "sdist/" directory, is that intended behavior?
It should remove the sdist/
dir - will test before releasing -
Okay - pax now included with v38
Tested on OpenBSD 7.2, works!
Thank you :)
I tried uploading a module after applying https://github.com/tony-o/raku-fez/issues/36#issuecomment-828699340.
Upload fails with:
META6.json
is present in the file:checkbuild
here tries extracting the archive withtar x0f
: https://github.com/tony-o/raku-fez/blob/6051f281ad83d5145fb50da0fb2ec8b2dcc0b6c1/lib/Fez/CLI.rakumod#L109Adding
z
should fix this: