Skip to content
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

Relax the version checking for Arch packages #32908

Merged
merged 7 commits into from
Dec 19, 2024

Conversation

ExplodingDragon
Copy link
Contributor

It is mentioned in https://man.archlinux.org/man/PKGBUILD.5: 'The variable is not allowed to contain colons, forward slashes, hyphens, or whitespace.'

_ is also an allowed character, and some software in the Arch Linux AUR uses this naming convention.

In libalpm/package.c#L884-L891, only the prohibited characters are checked.

@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 19, 2024
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 19, 2024
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Dec 19, 2024
@pull-request-size pull-request-size bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 19, 2024
@lunny lunny added type/bug backport/v1.23 This PR should be backported to Gitea 1.23 labels Dec 19, 2024
@wxiaoguang
Copy link
Contributor

Instead of testing the invalid ones only, I think it also needs to test the valid ones, especially the bug it fixed in this issue: _

Made some changes in 846a70e

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Dec 19, 2024
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Dec 19, 2024
@wxiaoguang wxiaoguang enabled auto-merge (squash) December 19, 2024 09:39
@wxiaoguang wxiaoguang merged commit 581e52b into go-gitea:main Dec 19, 2024
26 checks passed
@GiteaBot GiteaBot added this to the 1.24.0 milestone Dec 19, 2024
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Dec 19, 2024
It is mentioned in https://man.archlinux.org/man/PKGBUILD.5: 'The
variable is not allowed to contain colons, forward slashes, hyphens, or
whitespace.'

`_` is also an allowed character, and some software in the Arch Linux
AUR uses this naming convention.

---------

Co-authored-by: wxiaoguang <[email protected]>
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Dec 19, 2024
wxiaoguang added a commit that referenced this pull request Dec 19, 2024
Backport #32908 by ExplodingDragon

It is mentioned in https://man.archlinux.org/man/PKGBUILD.5: 'The
variable is not allowed to contain colons, forward slashes, hyphens, or
whitespace.'

`_` is also an allowed character, and some software in the Arch Linux
AUR uses this naming convention.

Co-authored-by: Exploding Dragon <[email protected]>
Co-authored-by: wxiaoguang <[email protected]>
@ExplodingDragon ExplodingDragon deleted the fix-arch-regex branch December 21, 2024 04:14
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Mar 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created backport/v1.23 This PR should be backported to Gitea 1.23 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code size/S Denotes a PR that changes 10-29 lines, ignoring generated files. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants