Unverified Commit a357c870 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

gotosocial: 0.17.4 -> 0.18.1 (#384538)

parents c00ccfb9 6f3912bf
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
        settings = {
          host = "localhost:8081";
          port = 8081;
          instance-stats-mode = "serve";
        };
      };
    };
@@ -21,9 +22,11 @@
    machine.wait_for_unit("gotosocial.service")
    machine.wait_for_unit("postgresql.service")
    machine.wait_for_open_port(8081)
    # Database migrations are running, wait until gotosocial no longer serves 503
    machine.wait_until_succeeds("curl -sS -f http://localhost:8081/readyz", timeout=300)

    # check user registration via cli
    machine.succeed("gotosocial-admin account create --username nickname --email email@example.com --password kurtz575VPeBgjVm")
    machine.succeed("curl -sS -f http://localhost:8081/nodeinfo/2.0 | jq '.usage.users.total' | grep -q '^1$'")
    machine.wait_until_succeeds("curl -sS -f http://localhost:8081/nodeinfo/2.0 | jq '.usage.users.total' | grep -q '^1$'")
  '';
}
+3 −3
Original line number Diff line number Diff line
@@ -9,11 +9,11 @@ let
  owner = "superseriousbusiness";
  repo = "gotosocial";

  version = "0.17.4";
  version = "0.18.1";

  web-assets = fetchurl {
    url = "https://github.com/${owner}/${repo}/releases/download/v${version}/${repo}_${version}_web-assets.tar.gz";
    hash = "sha256-esip1xGB0NroYRlKLNEs/o3J2G2nQyOIZTdDpVuY5Ag=";
    hash = "sha256-5MSABLPyTbFMTno9vUDvLT9h7oQM6eNUuwD+dsHiCLo=";
  };
in
buildGoModule rec {
@@ -23,7 +23,7 @@ buildGoModule rec {
  src = fetchFromGitHub {
    inherit owner repo;
    tag = "v${version}";
    hash = "sha256-OikJkTc2UK74eGy8AjEAk8cyRL57QReM0J6tXr9EAjw=";
    hash = "sha256-4jV1G1HwpIST2Y27RAhJB3CoJevwuhxdzi615hj0Qv0=";
  };

  vendorHash = null;