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
move update-check out of xbps-src #31602
Conversation
I had started a rewrite in Go, but our regexes require backtracking ( |
Can you elaborate on the reason? 'It's better' is a bit vague for my taste. |
@Gottox a primary reason is that shell lacks high parallelism and its difficult to extend. There's a lot more we could be doing with this data but because its in an awkward format its difficult to actually use. |
The reason to move out of
|
This script will read necessary variables from template, then calling the old update_check method.
The change is best-viewed with git diff --color-moved
d332ba7
to
3a53591
Compare
homepage and site are important too
There are templates that use wrksrc, _distver being custom transformation of version and more.
It uses dewey version sort with
Is this problem?
Test was done on templates with My conclusion is that this is micro-optimization that doesn't touch real problem pointed by maldridge - templates being bash programs depending on lot of xbps-src code that are complex to really understand, hard or slow to process for all usecases, like cycle detection. |
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
Continue discussion from #31546
It's better to rewrite in a real programming language, however this is enough for now.
TODO: check only distfiles.
The
eval
step should be removed when we can remove all variable exceptpkgname
andversion
fromdistfiles
, and merge the firstdistfiles
to the same line ofdistfiles=
@void-linux/pkg-committers
@the-maldridge moving out of
xbps-src
, we can drop the weirdXBPS_ALLOW_CHROOT_BREAKOUT=yes
fromupdate-check
container.