gitea: 1.18.5 -> 1.19.0

ChangeLog: https://github.com/go-gitea/gitea/releases/tag/v1.19.0

+9 -9
+1 -1
nixos/tests/gitea.nix
··· 93 93 api_token = server.succeed( 94 94 "curl --fail -X POST http://test:totallysafe@localhost:3000/api/v1/users/test/tokens " 95 95 + "-H 'Accept: application/json' -H 'Content-Type: application/json' -d " 96 - + "'{\"name\":\"token\"}' | jq '.sha1' | xargs echo -n" 96 + + "'{\"name\":\"token\",\"scopes\":[\"all\"]}' | jq '.sha1' | xargs echo -n" 97 97 ) 98 98 99 99 server.succeed(
+2 -2
pkgs/applications/version-management/gitea/default.nix
··· 15 15 16 16 buildGoModule rec { 17 17 pname = "gitea"; 18 - version = "1.18.5"; 18 + version = "1.19.0"; 19 19 20 20 # not fetching directly from the git repo, because that lacks several vendor files for the web UI 21 21 src = fetchurl { 22 22 url = "https://dl.gitea.io/gitea/${version}/gitea-src-${version}.tar.gz"; 23 - hash = "sha256-OGPn4fknYfzmuAi6CL8m/Ih4uRNraVDmpBm20qT3lKk="; 23 + hash = "sha256-9nDzXSGYxYw34/Ekmj44VdGLVhRsGL2e5gfyoyPUqGQ="; 24 24 }; 25 25 26 26 vendorHash = null;
+6 -6
pkgs/applications/version-management/gitea/static-root-path.patch
··· 1 - diff --git a/modules/setting/setting.go b/modules/setting/setting.go 2 - index 45e55a2..9d18ee4 100644 3 - --- a/modules/setting/setting.go 4 - +++ b/modules/setting/setting.go 5 - @@ -667,7 +667,7 @@ func NewContext() { 1 + diff --git a/modules/setting/server.go b/modules/setting/server.go 2 + index 183906268..fa02e8915 100644 3 + --- a/modules/setting/server.go 4 + +++ b/modules/setting/server.go 5 + @@ -319,7 +319,7 @@ func loadServerFrom(rootCfg ConfigProvider) { 6 6 OfflineMode = sec.Key("OFFLINE_MODE").MustBool() 7 - DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool() 7 + Log.DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool() 8 8 if len(StaticRootPath) == 0 { 9 9 - StaticRootPath = AppWorkPath 10 10 + StaticRootPath = "@data@"