mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
victoriametrics: 1.84.0 -> 1.89.1
https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.89.1 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.89.0 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.88.1 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.88.0 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.87.4 (LTS) https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.87.3 (LTS) https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.87.2 (LTS) https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.87.1 (LTS) https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.87.0 (LTS) https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.86.2 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.86.1 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.86.0 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.85.3 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.85.2 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.85.1 https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.85.0 diff: https://github.com/VictoriaMetrics/VictoriaMetrics/compare/v1.84.0...v1.89.1 `lib/querytracer/tracer.go` uses `buildinfo.Version`, but its tests expect that value to be unset, which is why I had to add that preCheck phase. Context:49ebc48809
3019ec3da6
8434aa142d
Also, `lib/storage/storage_test.go` switched to `time.NewTimer` in some places.
This commit is contained in:
parent
e3652e0735
commit
3ae8b5339d
@ -2,16 +2,16 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "VictoriaMetrics";
|
||||
version = "1.84.0";
|
||||
version = "1.89.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-94QhjsCow1Ate/Bbia7KpWY3WgHk3oOarAY95Fq75hU=";
|
||||
hash = "sha256-s5Fo0Bsy9cAoNLRMAYjNrSLJ0vX4HdbQ+T3cj6ebNPE=";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
vendorHash = null;
|
||||
|
||||
postPatch = ''
|
||||
# main module (github.com/VictoriaMetrics/VictoriaMetrics) does not contain package
|
||||
@ -23,11 +23,17 @@ buildGoModule rec {
|
||||
# Increase timeouts in tests to prevent failure on heavily loaded builders
|
||||
substituteInPlace lib/storage/storage_test.go \
|
||||
--replace "time.After(10 " "time.After(120 " \
|
||||
--replace "time.After(30 " "time.After(120 "
|
||||
--replace "time.NewTimer(30 " "time.NewTimer(120 " \
|
||||
--replace "time.NewTimer(time.Second * 10)" "time.NewTimer(time.Second * 120)" \
|
||||
'';
|
||||
|
||||
ldflags = [ "-s" "-w" "-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${version}" ];
|
||||
|
||||
preCheck = ''
|
||||
# `lib/querytracer/tracer_test.go` expects `buildinfo.Version` to be unset
|
||||
export ldflags=''${ldflags//=${version}/=}
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit (nixosTests) victoriametrics; };
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user