Unverified Commit ae58ca4c authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #302709 from r-ryantm/auto-update/grafana-loki

grafana-loki,promtail: 2.9.6 -> 3.0.0
parents aac53100 271fd55b
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -5,17 +5,19 @@
, makeWrapper
, nixosTests
, systemd
, testers
, grafana-loki
}:

buildGoModule rec {
  version = "2.9.6";
  version = "3.0.0";
  pname = "grafana-loki";

  src = fetchFromGitHub {
    owner = "grafana";
    repo = "loki";
    rev = "v${version}";
    hash = "sha256-79hK7axHf6soku5DvdXkE/0K4WKc4pnS9VMbVc1FS2I=";
    hash = "sha256-2+OST6bKIjuhrXJKA+8vUERKT1/min7tN8oFxKn3L74=";
  };

  vendorHash = null;
@@ -38,9 +40,15 @@ buildGoModule rec {
      --prefix LD_LIBRARY_PATH : "${lib.getLib systemd}/lib"
  '';

  passthru.tests = { inherit (nixosTests) loki; };
  passthru.tests = {
    inherit (nixosTests) loki;
    version = testers.testVersion {
      command = "loki --version";
      package = grafana-loki;
    };
  };

  ldflags = let t = "github.com/grafana/loki/pkg/util/build"; in [
  ldflags = let t = "github.com/grafana/loki/v3/pkg/util/build"; in [
    "-s"
    "-w"
    "-X ${t}.Version=${version}"