Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitea: 1.19.4 -> 1.20.0 #243883

Merged
merged 4 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion nixos/modules/services/misc/gitea.nix
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ in
lfs = mkIf cfg.lfs.enable {
PATH = cfg.lfs.contentDir;
};

packages.CHUNKED_UPLOAD_PATH = "${cfg.stateDir}/tmp/package-upload";
};

services.postgresql = optionalAttrs (usePostgresql && cfg.database.createDatabase) {
Expand Down Expand Up @@ -575,7 +577,7 @@ in
'';

serviceConfig = {
Type = "simple";
Type = "notify";
User = cfg.user;
Group = cfg.group;
WorkingDirectory = cfg.stateDir;
Expand Down
6 changes: 1 addition & 5 deletions nixos/tests/gitea.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,10 @@ let
client2.succeed(f"GIT_SSH_COMMAND='{GIT_SSH_COMMAND}' git clone {REPO}")
client2.succeed('test "$(cat repo/testfile | xargs echo -n)" = "hello world"')

server.succeed(
server.wait_until_succeeds(
'test "$(curl http://localhost:3000/api/v1/repos/test/repo/commits '
+ '-H "Accept: application/json" | jq length)" = "1"'
)

client1.shutdown()
client2.shutdown()
server.shutdown()
'';
});
in
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/version-management/gitea/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@

buildGoModule rec {
pname = "gitea";
version = "1.19.4";
version = "1.20.0";

# not fetching directly from the git repo, because that lacks several vendor files for the web UI
src = fetchurl {
url = "https://dl.gitea.com/gitea/${version}/gitea-src-${version}.tar.gz";
hash = "sha256-vNMNEKMpUoVLUGwPPVhLKfElFmjCWgZHY5i1liNs+xk=";
hash = "sha256-ME2ZYSeaHru/7wBFBmXLpf9dKpl0WrtrmAqmzw37tq4=";
};

vendorHash = null;
Expand Down