Gusted
2d4dbbe741
[GITEA] Make atomic ssh keys replacement robust
...
- After stumbling upon https://github.com/golang/go/issues/22397 and
reading the implementations I realized that Forgejo code doesn't have
`Sync()` and it doesn't properly error handle the `Close` function.
- (likely) Resolves https://codeberg.org/forgejo/forgejo/issues/1446
(cherry picked from commit 0efcb334c2
)
(cherry picked from commit 04ef02c0dd
)
(cherry picked from commit 85f2065c9b
)
(cherry picked from commit 8d36b5cce6
)
(cherry picked from commit 378dc30fb5
)
(cherry picked from commit 2b28bf826e
)
(cherry picked from commit d0625a001e
)
(cherry picked from commit f161a4f60f
)
(cherry picked from commit 7430ca43e5
)
(cherry picked from commit ab6d38daf7
)
(cherry picked from commit 0f703fd02e
)
(cherry picked from commit 6931a8f6bb
)
(cherry picked from commit 5e2065c1c0
)
(cherry picked from commit 38c812acff
)
(cherry picked from commit 494874e23f
)
(cherry picked from commit d396b7fd47
)
(cherry picked from commit 7babc6efe1
)
2024-01-28 10:48:05 +01:00
Lunny Xiao
cddf245c12
Replace more db.DefaultContext ( #27628 )
...
Target #27065
2023-10-15 17:46:06 +02:00
JakobDev
7047df36d4
Another round of db.DefaultContext
refactor ( #27103 )
...
Part of #27065
---------
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2023-09-25 13:17:37 +00:00
silverwind
88f835192d
Replace interface{}
with any
( #25686 )
...
Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`.
Basically the same [as golang did](2580d0e08d
).
2023-07-04 18:36:08 +00:00
flynnnnnnnnnn
e81ccc406b
Implement FSFE REUSE for golang files ( #21840 )
...
Change all license headers to comply with REUSE specification.
Fix #16132
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-11-27 18:20:29 +00:00
Lunny Xiao
fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context ( #19748 )
...
* Move almost all functions' parameter db.Engine to context.Context
* remove some unnecessary wrap functions
2022-05-20 22:08:52 +08:00
Lunny Xiao
3ca5dc7e32
Move keys to models/asymkey ( #17917 )
...
* Move keys to models/keys
* Rename models/keys -> models/asymkey
* change the missed package name
* Fix package alias
* Fix test
* Fix docs
* Fix test
* Fix test
* merge
2021-12-10 16:14:24 +08:00