04c97aa364
Change use of Walk to WalkDir to improve disk performance ( #22462 )
...
As suggest by Go developers, use `filepath.WalkDir` instead of
`filepath.Walk` because [*Walk is less efficient than WalkDir,
introduced in Go 1.16, which avoids calling `os.Lstat` on every file or
directory visited](https://pkg.go.dev/path/filepath#Walk ).
This proposition address that, in a similar way as
https://github.com/go-gitea/gitea/pull/22392 did.
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2023-01-16 16:21:44 +00:00
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
c18d8d6968
Remove legacy +build:
constraint ( #19582 )
...
Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.
2022-05-02 23:22:45 +08:00
54e9ee37a7
format with gofumpt ( #18184 )
...
* gofumpt -w -l .
* gofumpt -w -l -extra .
* Add linter
* manual fix
* change make fmt
2022-01-20 18:46:10 +01:00
a1c12fb0b3
Don't store assets modified time into generated files ( #18193 )
2022-01-06 21:33:17 -05:00
f2e7d5477f
refactor: move from io/ioutil to io and os package ( #17109 )
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2021-09-22 13:38:34 +08:00
648464b504
Add bundle download for repository ( #14538 )
...
* Add bundle download
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Fix build tags
Signed-off-by: jolheiser <john.olheiser@gmail.com >
* Download specific commit
Signed-off-by: jolheiser <john.olheiser@gmail.com >
2021-08-24 11:47:09 -05:00
4f63f283c4
Rename scripts to build and add revive command as a new build tool command ( #10942 )
...
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
2020-04-03 22:29:12 +03:00