这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@TomJo2000
Copy link
Member

@TomJo2000 TomJo2000 commented Jun 3, 2025

This PR introduces a linter step to ensure that any packages modified on a PR branch have either been updated to a new version, or have had their revision bumped.

This is being determined by a pretty basic grep on the diffs of all commits between master/HEAD and HEAD.

I also fixed a bug in the linter that caused it to incorrectly continue after a failure.
This lead to trailing whitespace being committed into the fd and predict packages.
I have fixed those linter failures as part of this PR.

We also had a couple instances of if "$check_var"; then in the linter script.
Treating variables as programs is generally discouraged so I have replaced those instances with a proper if [[ "$check_var" == 'true' ]]; then

Lastly I have moved the package counter out of being local to linter_main as this caused it to be reset between different repo channels (e.g. packages, root-packages and x11-packages), it is now a proper cumulative count (and currently reports 2609 packages checked on a full run).

@TomJo2000 TomJo2000 force-pushed the lint-missing-revbumps branch from 195ff5d to a0f5563 Compare June 4, 2025 19:23
@TomJo2000 TomJo2000 requested a review from licy183 June 5, 2025 13:29
TomJo2000 added 3 commits June 5, 2025 17:42
- Also fix a linter error (trailing whitespace, line 29)
- Also ship `elvish` completions
- and generate `zsh` completions instead of copying them
- Trailing whitespace on line 25
- and minor build script cleanup
- also don't reset package count between repo channels
- don't use `$var` condition values as a command
- clean up various shellcheck warnings
@TomJo2000 TomJo2000 force-pushed the lint-missing-revbumps branch from a0f5563 to 22b212c Compare June 5, 2025 15:44
@TomJo2000
Copy link
Member Author

I'd like to merge this in ~6 hours if there's no further comments or concerns.

@TomJo2000 TomJo2000 merged commit e21ba8a into termux:master Jun 8, 2025
9 checks passed
@TomJo2000 TomJo2000 deleted the lint-missing-revbumps branch June 8, 2025 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants