Unverified Commit 98e069c0 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

treewide: use finalAttrs.finalPackage in testers.testVersion (#431103)

parents 00b574b1 e1878461
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@
  buildGoModule,
  fetchFromGitHub,
  testers,
  harbor-cli,
  installShellFiles,
}:

@@ -46,7 +45,7 @@ buildGoModule (finalAttrs: {
  '';

  passthru.tests.version = testers.testVersion {
    package = harbor-cli;
    package = finalAttrs.finalPackage;
    command = "HOME=\"$(mktemp -d)\" harbor version";
  };

+1 −2
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@
  fetchFromGitHub,
  installShellFiles,
  testers,
  okteto,
}:

buildGoModule (finalAttrs: {
@@ -74,7 +73,7 @@ buildGoModule (finalAttrs: {
  '';

  passthru.tests.version = testers.testVersion {
    package = okteto;
    package = finalAttrs.finalPackage;
    command = "HOME=\"$(mktemp -d)\" okteto version";
  };

+1 −2
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
  libsecret,
  python3,
  testers,
  vsce,
  nix-update-script,
}:

@@ -39,7 +38,7 @@ buildNpmPackage (finalAttrs: {

  passthru = {
    tests.version = testers.testVersion {
      package = vsce;
      package = finalAttrs.finalPackage;
    };
    updateScript = nix-update-script {
      extraArgs = [
+1 −2
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  rustPlatform,
  fetchFromGitHub,
  testers,
  weaver,
}:

rustPlatform.buildRustPackage (finalAttrs: {
@@ -25,7 +24,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
  ];

  passthru.tests.version = testers.testVersion {
    package = weaver;
    package = finalAttrs.finalPackage;
  };

  meta = {