Update dependencies (#316)

update xdg

update survey

update go-sdk

Co-authored-by: Norwin Roosen <git@nroo.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/316
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: 6543 <6543@obermui.de>
Co-Authored-By: Norwin <noerw@noreply.gitea.io>
Co-Committed-By: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
Norwin
2020-12-22 01:11:08 +08:00
committed by 6543
parent 32b7b771cc
commit 95ef061711
208 changed files with 5042 additions and 2272 deletions

View File

@@ -33,6 +33,14 @@ func homeDir() string {
return ""
}
func chown(name string, uid, gid int) error {
if goOS := runtime.GOOS; goOS == "windows" || goOS == "plan9" {
return nil
}
return os.Chown(name, uid, gid)
}
func exists(path string) bool {
_, err := os.Stat(path)
return err == nil || os.IsExist(err)