1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-30 14:09:42 -05:00
forgejo/models/migrations/v1_16
Chongyi Zheng 2d9249b6d9
Replace deprecated elliptic.Marshal (#26800)
In PR #26786, the Go version for golangci-lint is bumped to 1.21. This
causes the following error:

```
models/migrations/v1_16/v210.go:132:23: SA1019: elliptic.Marshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function returns an encoding equivalent to that of PublicKey.Bytes in crypto/ecdh. (staticcheck)
                                        PublicKey:       elliptic.Marshal(elliptic.P256(), parsed.PubKey.X, parsed.PubKey.Y),
```

The change now uses [func (*PublicKey)
ECDH](https://pkg.go.dev/crypto/ecdsa#PublicKey.ECDH), which is added in
Go 1.20.
2023-08-29 22:19:40 +02:00
..
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
v189.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v189_test.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
v190.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v191.go Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
v192.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
v193.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v193_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
v194.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v195.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v195_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
v196.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v197.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v198.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v199.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
v200.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v201.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
v202.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v203.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v204.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v205.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
v206.go Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v207.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
v208.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
v209.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
v210.go Replace deprecated elliptic.Marshal (#26800) 2023-08-29 22:19:40 +02:00
v210_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00