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

Update go tool dependencies #32916

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Update go tool dependencies #32916

merged 2 commits into from
Dec 19, 2024

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented Dec 19, 2024

Update all go tool dependencies to latest version. WIP because I think there are new gopls errors, would like to confirm them on CI first. Here is from a local run:

modules/markup/markdown/goldmark.go:115:37-53: unnecessary type arguments
modules/markup/html.go:45:32-49: unnecessary type arguments
modules/markup/internal/renderinternal.go:20:33-49: unnecessary type arguments
modules/markup/common/linkify.go:27:32-49: unnecessary type arguments
modules/util/time_str.go:28:39-63: unnecessary type arguments
routers/web/repo/pull.go:704:19: impossible condition: non-nil == nil
modules/util/util_test.go:248:14-23: unused parameter: other

Backport because the gxz update might have security benefits.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 19, 2024
@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
@silverwind silverwind marked this pull request as draft December 19, 2024 15:23
@silverwind silverwind added backport/v1.23 This PR should be backported to Gitea 1.23 modifies/dependencies labels 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
@github-actions github-actions bot added modifies/go Pull requests that update Go code and removed modifies/dependencies labels Dec 19, 2024
@silverwind
Copy link
Member Author

silverwind commented Dec 19, 2024

Issues were confirmed on CI and I fixed them. The only interesting one is this one where the removed code was dead code because the same condtion was checked earlier.

@silverwind silverwind marked this pull request as ready for review December 19, 2024 15:41
@silverwind silverwind removed the backport/v1.23 This PR should be backported to Gitea 1.23 label Dec 19, 2024
@silverwind
Copy link
Member Author

Actually, no backport needed as per ulikunitz/xz@4f11dce.

@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
@silverwind silverwind merged commit 626b27b into go-gitea:main Dec 19, 2024
26 checks passed
@GiteaBot GiteaBot added this to the 1.24.0 milestone Dec 19, 2024
@silverwind silverwind deleted the tooldeps-6 branch December 19, 2024 18:17
@lunny
Copy link
Member

lunny commented Jan 22, 2025

To resolve #33349, I think we need to backport this one.

@silverwind silverwind added the backport/v1.23 This PR should be backported to Gitea 1.23 label Jan 22, 2025
@silverwind
Copy link
Member Author

Sure, let's see if it's automatic.

silverwind added a commit to silverwind/gitea that referenced this pull request Jan 22, 2025
Update all go tool dependencies to latest version. WIP because I think
there are new gopls errors, would like to confirm them on CI first. Here
is from a local run:

```
modules/markup/markdown/goldmark.go:115:37-53: unnecessary type arguments
modules/markup/html.go:45:32-49: unnecessary type arguments
modules/markup/internal/renderinternal.go:20:33-49: unnecessary type arguments
modules/markup/common/linkify.go:27:32-49: unnecessary type arguments
modules/util/time_str.go:28:39-63: unnecessary type arguments
routers/web/repo/pull.go:704:19: impossible condition: non-nil == nil
modules/util/util_test.go:248:14-23: unused parameter: other
```

~~Backport because the `gxz` update might have security benefits.~~
@silverwind silverwind added the backport/done All backports for this PR have been created label Jan 22, 2025
@silverwind
Copy link
Member Author

Manual backport: #33355

techknowlogick pushed a commit that referenced this pull request Jan 22, 2025
Clean cherry-pick of #32916.
Update all go tool dependencies to latest version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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 modifies/internal size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants