victorialogs: 1.26.0 -> 1.29.0

This commit is contained in:
Shawn8901
2025-08-24 20:06:01 +02:00
parent cae27f3ab1
commit 961847a69f
+11 -2
View File
@@ -10,13 +10,13 @@
buildGoModule (finalAttrs: {
pname = "VictoriaLogs";
version = "1.26.0";
version = "1.29.0";
src = fetchFromGitHub {
owner = "VictoriaMetrics";
repo = "VictoriaLogs";
tag = "v${finalAttrs.version}";
hash = "sha256-PnXpu2Dna5grozKOGRHi/Gic7djszYh7wJ96EiEYP8U=";
hash = "sha256-IKKVCVsHFijSnLawy9oq1qCji2O4+QkSWUvQ4S6tAN8=";
};
vendorHash = null;
@@ -32,6 +32,15 @@ buildGoModule (finalAttrs: {
]
++ lib.optionals withVlAgent [ "app/vlagent" ];
postPatch = ''
# Allow older go versions
substituteInPlace go.mod \
--replace-fail "go 1.25.0" "go ${finalAttrs.passthru.go.version}"
substituteInPlace vendor/modules.txt \
--replace-fail "go 1.25.0" "go ${finalAttrs.passthru.go.version}"
'';
ldflags = [
"-s"
"-w"