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

grafana-loki,promtail: 2.9.6 -> 3.0.0
This commit is contained in:
Weijia Wang 2024-04-11 05:15:43 +02:00 committed by GitHub
commit ae58ca4c0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,17 +5,19 @@
, makeWrapper , makeWrapper
, nixosTests , nixosTests
, systemd , systemd
, testers
, grafana-loki
}: }:
buildGoModule rec { buildGoModule rec {
version = "2.9.6"; version = "3.0.0";
pname = "grafana-loki"; pname = "grafana-loki";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "grafana"; owner = "grafana";
repo = "loki"; repo = "loki";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-79hK7axHf6soku5DvdXkE/0K4WKc4pnS9VMbVc1FS2I="; hash = "sha256-2+OST6bKIjuhrXJKA+8vUERKT1/min7tN8oFxKn3L74=";
}; };
vendorHash = null; vendorHash = null;
@ -38,9 +40,15 @@ buildGoModule rec {
--prefix LD_LIBRARY_PATH : "${lib.getLib systemd}/lib" --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" "-s"
"-w" "-w"
"-X ${t}.Version=${version}" "-X ${t}.Version=${version}"