chore: Make Forgejo build with go1.24

- [Go 1.24](https://groups.google.com/g/golang-announce/c/vYMfuq_XO6w)
is currently out for rc1.
- Using it to test unit tests and integration testing it failed horribly
with strange panics and errors, it is caused by
ca63101df4
and Forgejo trying to access the wrong internal data structures that
have been changed in Go 1.24.
- Use the new data structure for Go 1.24 and above.
This commit is contained in:
Gusted 2024-12-17 15:26:28 +01:00
parent 3d5dfea734
commit 61e21d7ded
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 40 additions and 0 deletions

View file

@ -1,3 +1,5 @@
//go:build !go1.24
// Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT