-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yay hangs when attempting to install caret-bin #469
Comments
Looks like this is the cause mikkeloscar/gopkgbuild#24. Basically the file doesn't end in a new line. It's good practice to end in a new line but obviously it should be able to work just fine if it doesn't. As a work around if you choose to edit the file then just write quit, vim should but a new line at the end for you. As for gopkgbuild, that issues been open for 13 days with no response. I've actually thought of writing my own version of it, with proper split package support and all that. But that won't be any time soon. |
Doesn't look like I can edit the pkgbuild during the install process either - it just hangs still. I'll see if the caret-bin maintainer will just add a newline to the pkgbuild though. Hopefully that solves it. |
Can you attach a log upto the point it hangs? |
Just the console output?
If there's an actual log file somewhere, I don't know where it is, but I'm happy to provide it. |
Weird that it crashes there. I'll look into it when I'm able. You can edit manually via Just to confirm it is because of the new line. |
I added a newline, and it's still hanging. Very strange. |
Hmm my assumption may be off then. Have you tried it with Other than that I'll have to look into myself when I can. |
I'll give it a go after work :) |
I realise I misspoke, It's the .SRCINFO that's missing a new line, Yay doesn't actually read the pkgbuild. I tested it myself and that did fix it for me. |
Oh! Great, I'll try that tonight as well. |
Fixed. maybe pacman doesn't require new line before EOF, but any text file should have. |
Thanks for fixing it, I wonder if my issue will get a reply any time soon. |
I got bored and decided to write up my own srcinfo parser. https://github.com/Morganamilo/go-srcinfo All the theory is there, it's relatively untested though. I don't plan on moving Yay over to it any time soon just wondering what you think. |
I'll give it a proper look once I have a little hole of time, but I'm glad to see you have time available to be bored 😆 |
Hey now, everybody gets bored. I't only took a couple of hours to write, now I've gone back and done all the tests and finished it up so consider it basically 100% complete. |
Do you think there are advantages to moving over to Also bored and avoiding work:
Normal Bench
-benchtime=10s -benchmem
I think I can help on your tests as well, but from the results I see I'm not against changing our |
The advantage to switching would be to avoid thing such as mikkeloscar/gopkgbuild#24. Even though gopkgbuild has a disapproval of certain characters. Yes makepkg states a pkgname and other fields should not contain certain characters. But frankly I don't care. It's makepkg's job to lint the pkgbuild. If makepkg successfully builds and generates a srcinfo then we should accept it. There's also split package support. Now we don't need this much because all of our dependency resolving is done through the RPC. There is one thing I have wanted to do though, show Also in terms of simplicity I find gopkgbuild's lexer approach way overkill for a simple key value pair file. In fact the only reason I havn't fixed mikkeloscar/gopkgbuild#24 is because I don't wan't to have to deal with the lexer. In terms of actual lines of code (no comments / tests). gopkgbuild is around 850 lines while go-srcinfo is around 450. |
If it doesn't break any of yay's features, I approve the transition to |
I purposely left out paring the values. gopkgbuild has the I think you focus on speed way to too much, the bottleneck here is probably reading the files, you're never going to notice a speed difference between the two. When I mentioned lines of code I was referring to simple vs complex. P.S. you may have missed up mixed up which project is which there ;) |
Yes, since we already do it on
I do. It's a disease. And binary size and bloat is an even bigger paranoia I try to restrain myself on.
For a moment I thought I was reading the benchmark results wrong. You're completely right and I need my coffee, fixed the mistake where it mattered :) |
Affected Version
yay v6.786
Issue
When attempting to install
caret-bin
,yay
just hangs. I've confirmed that thecaret-bin
package will build and install manually usingmakepkg -si
.Steps to reproduce
yay caret-bin
The text was updated successfully, but these errors were encountered: