Unverified Commit ca8bfda1 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

victorialogs: 1.36.1 -> 1.38.0 (#457078)

parents 039e9a8f d0bd881a
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -10,13 +10,13 @@

buildGoModule (finalAttrs: {
  pname = "VictoriaLogs";
  version = "1.36.1";
  version = "1.38.0";

  src = fetchFromGitHub {
    owner = "VictoriaMetrics";
    repo = "VictoriaLogs";
    tag = "v${finalAttrs.version}";
    hash = "sha256-TZhgZ8x1ESXrNMU6Sa4cQMurTZ+obD/JqqIJFJ18KOA=";
    hash = "sha256-UosxxeTZzM/f2rqUdMqPxHgnu57/dUc/X7gFOySy+M4=";
  };

  vendorHash = null;
@@ -34,12 +34,9 @@ buildGoModule (finalAttrs: {
    ++ lib.optionals withVlAgent [ "app/vlagent" ];

  postPatch = ''
    # Allow older go versions
    substituteInPlace go.mod \
      --replace-fail "go 1.25.2" "go ${finalAttrs.passthru.go.version}"

    substituteInPlace vendor/modules.txt \
      --replace-fail "go 1.25.0" "go ${finalAttrs.passthru.go.version}"
    # Relax go version to major.minor
    sed -i -E 's/^(go[[:space:]]+[[:digit:]]+\.[[:digit:]]+)\.[[:digit:]]+$/\1/' go.mod
    sed -i -E 's/^(go[[:space:]]+[[:digit:]]+\.[[:digit:]]+)\.[[:digit:]]+$/\1/' vendor/modules.txt
  '';

  ldflags = [