You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services/migrations
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551)
Found using
`find . -type f -name '*.go' -print -exec vim {} -c
':%s/fmt\.Errorf(\(.*\)%v\(.*\)err/fmt.Errorf(\1%w\2err/g' -c ':wq' \;`

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
..
codebase.go Add more checks in migration code (#21011) 2 years ago
codebase_test.go Update go tool dependencies (#19676) 2 years ago
common.go Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
dump.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
error.go Prevent NPE whilst migrating if there is a team request review (#19855) 2 years ago
git.go format with gofumpt (#18184) 2 years ago
gitbucket.go Add more checks in migration code (#21011) 2 years ago
gitea_downloader.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
gitea_downloader_test.go Update HTTP status codes to modern codes (#18063) 2 years ago
gitea_uploader.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
gitea_uploader_test.go Refactor git command arguments and make all arguments to be safe to be used (#21535) 2 years ago
github.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
github_test.go Store the foreign ID of issues during migration (#18446) 2 years ago
gitlab.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
gitlab_test.go Update go tool dependencies (#19676) 2 years ago
gogs.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
gogs_test.go Store the foreign ID of issues during migration (#18446) 2 years ago
http_client.go Use `hostmatcher` to replace `matchlist`, improve security (#17605) 3 years ago
main_test.go Use a struct as test options (#19393) 2 years ago
migrate.go Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
migrate_test.go Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
onedev.go Add more checks in migration code (#21011) 2 years ago
onedev_test.go Update go tool dependencies (#19676) 2 years ago
restore.go Add more checks in migration code (#21011) 2 years ago
update.go Move more model into models/user (#17826) 3 years ago