Unverified Commit 0d17bb67 authored by Jonathan Davies's avatar Jonathan Davies
Browse files

prometheus: Add versionCheckHook

parent 985b1f40
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@
  enableVultr ? true,
  enableXDS ? true,
  enableZookeeper ? true,
  versionCheckHook,
}:

let
@@ -186,6 +187,12 @@ buildGoModule (finalAttrs: {
    "-skip=TestEvaluations/testdata/aggregators.test"
  ];

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = "--version";
  doInstallCheck = true;

  passthru = {
    tests = { inherit (nixosTests) prometheus; };
    updateScript = ./update.sh;