Unverified Commit 537eb92d authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

typespec: update fetcherVersion in pnpm.fetchDeps (#457046)

parents 4400ebee 04ac7744
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  nix-update-script,
  nodejs,
  pnpm,
  testers,
  versionCheckHook,
}:

let
@@ -38,8 +38,8 @@ stdenvNoCC.mkDerivation (finalAttrs: {
      pnpmWorkspaces
      postPatch
      ;
    fetcherVersion = 1;
    hash = "sha256-/Y7KhdNeyUV2CQQWjhYBDDT24oE6UdBO6HTweUUaNqc=";
    fetcherVersion = 2;
    hash = "sha256-ztig1B10cQQy+4XKZjwwlCxGenwcU+C28TfTWHqZ59Y=";
  };

  postPatch = ''
@@ -91,9 +91,11 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    runHook postInstall
  '';

  passthru.tests.version = testers.testVersion {
    package = finalAttrs.finalPackage;
  };
  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;
  versionCheckProgramArg = "--version";

  passthru.updateScript = nix-update-script {
    extraArgs = [ ''--version-regex=typespec-stable@(\d+\.\d+\.\d+)'' ];