-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
enhance(scripts/lint-packages.sh): optimize handling of version arrays #27095
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
base: master
Are you sure you want to change the base?
enhance(scripts/lint-packages.sh): optimize handling of version arrays #27095
Conversation
|
using termux-apt on-device, I can't reproduce the exact error that truboxl saw which is reproducible by the command |
|
Is your on-device clone of the repo up to date? |
yes.
It appears that for some reason, termux-packages/packages/cabal-install/build.sh Lines 27 to 30 in e8a9bb6
|
|
It's probably regex related. |
|
Actually it's a sequencing error. termux-packages/scripts/lint-packages.sh Lines 84 to 95 in e8a9bb6
So we just need to move this block up above the heredoc check. termux-packages/scripts/lint-packages.sh Lines 97 to 101 in e8a9bb6
|
|
Judging from the comment on the heredoc block, this was intentional behavior, however it seems to be unintended as far as expectations are concerned. |
34285ba to
7666aca
Compare
7666aca to
6e4ed53
Compare
6e4ed53 to
dc0c6d8
Compare
CC: @Biswa96
This PR will prevent failure modes such as the one in https://github.com/termux/termux-packages/actions/runs/19025073645 by skipping the version checks past version validation for version arrays on all but index 0, since that is the
git diff, version compare, and sequential revision increase/proper revision reset checks only need to be run once.I'd like to additionally request @truboxl for review regarding the recent on-device issues with the linter.
This branch doesn't contain fixes for on-device usage in its initial state, however I plan to add these later today after concluding on-device testing of the linter.