pkgx icon indicating copy to clipboard operation
pkgx copied to clipboard

parse issue $PROJECT

Open asg0451 opened this issue 2 years ago • 9 comments

❯ kustomize ^^ type x to run that

❯ x env +kustomize && kustomize × parse error unidata.ucar.edu/netcdf │ this is a serious issue. please report the bug ╰─➤ https://github.com/pkgxdev/pkgx/issues/new?title=parse+issue+unidata.ucar.edu/netcdf

kitty, zsh, mac os sonoma 14.1.1

worked on a retry

asg0451 avatar Nov 18 '23 17:11 asg0451

oh dang, the retry presumably fixed the corrupted file. However we are getting more of these sorts of reports than I'm comfortable with so the bug is there. I wonder specifically what is going wrong.

mxcl avatar Nov 18 '23 18:11 mxcl

Same here, which just happened after updating my Mac M1 to Sonoma 14.2 today. (It worked yesterday before updating.)

$ pkgx +npmjs.com sh
× parse error github.com/skystrife/cpptoml
│ this is a serious issue. please report the bug
╰─➤ https://github.com/pkgxdev/pkgx/issues/new?title=parse+issue+github.com/skystrife/cpptoml


$ sh <(curl https://pkgx.sh) +npmjs.com sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3764  100  3764    0     0   7058      0 --:--:-- --:--:-- --:--:--  7061
#################################################################################################################### 100.0%
× parse error github.com/skystrife/cpptoml
│ this is a serious issue. please report the bug
╰─➤ https://github.com/pkgxdev/pkgx/issues/new?title=parse+issue+github.com/skystrife/cpptoml


$ x
zsh: command not found: x


# works with no args
$ pkgx sh
this is a temporary shell containing the following packages:

when done type: `exit`
pkgx ~/dev/medici/las-web/web


$ pkgx --version
pkgx 1.0.4

Mine is bad because it does not work on a retry, nor with x. Any workarounds appreciated!

trent-medici avatar Dec 12 '23 20:12 trent-medici

pkgx --sync should force fix it. can you paste the contents of your ~/Library/Application\ Support/pkgx/pantry/projects/github.com/skystrife/cpptoml/package.yml first?

jhheider avatar Dec 12 '23 20:12 jhheider

pkgx --sync should force fix it. can you paste the contents of your ~/Library/Application\ Support/pkgx/pantry/projects/github.com/skystrife/cpptoml/package.yml first?

$ cat ~/Library/Application\ Support/pkgx/pantry/projects/github.com/skystrife/cpptoml/package.yml
$ ls -al ~/Library/Application\ Support/pkgx/pantry/projects/github.com/skystrife/cpptoml/package.yml
-rw-r--r--  1 tlarson  staff  0 Dec 12 13:17 /Users/tlarson/Library/Application Support/pkgx/pantry/projects/github.com/skystrife/cpptoml/package.yml

trent-medici avatar Dec 12 '23 20:12 trent-medici

wow. empty.

jhheider avatar Dec 12 '23 20:12 jhheider

Interesting that it is the ONLY file in the 724 files under that github.com directory that is size 0.

$ ls -l  ~/Library/Application\ Support/pkgx/pantry/projects/github.com/*/* | grep " 0 "
-rw-r--r--  1 tlarson  staff    0 Dec 12 13:17 package.yml

trent-medici avatar Dec 12 '23 20:12 trent-medici

pkgx --sync

That worked! Thank you very much.

trent-medici avatar Dec 12 '23 20:12 trent-medici

There should be over 1000 package.yml files alone. I'm guessing it was the last thing written during the unpack of a truncated tarballs.

My pet theory is that github's download repo as tarball isn't working 100%. Either because it's reusing temp files or because we have so many files.

jhheider avatar Dec 12 '23 20:12 jhheider

This should effect things less often now, but still periodically happens for sure. I have plans for solutions based on the precept that this is a github tarball corruption issue.

mxcl avatar Feb 02 '24 20:02 mxcl