about summary refs log tree commit diff
path: root/pkgs/tools/misc/infracost
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2021-10-04 14:18:24 +0100
committer06kellyjac <dev@j-k.io>2021-10-04 14:18:24 +0100
commit8c9b5efb9428c136f6b89dce0d60d31463e49484 (patch)
treed54b8cb31a265a7806bf1b3729f4a745c36e9407 /pkgs/tools/misc/infracost
parent03754a32a00fcf325e3735240bcd28d4b6e44abc (diff)
infracost: 0.9.6 -> 0.9.8
Diffstat (limited to 'pkgs/tools/misc/infracost')
-rw-r--r--pkgs/tools/misc/infracost/default.nix15
1 files changed, 11 insertions, 4 deletions
diff --git a/pkgs/tools/misc/infracost/default.nix b/pkgs/tools/misc/infracost/default.nix
index 43dcbc4a74fc5..a22e6eab06cc2 100644
--- a/pkgs/tools/misc/infracost/default.nix
+++ b/pkgs/tools/misc/infracost/default.nix
@@ -2,15 +2,15 @@
 
 buildGoModule rec {
   pname = "infracost";
-  version = "0.9.6";
+  version = "0.9.8";
 
   src = fetchFromGitHub {
     owner = "infracost";
     rev = "v${version}";
     repo = "infracost";
-    sha256 = "sha256-lcvpNhfSgr8ky03sTo7kjnaLUJeIrzFqpYUjvQpT1Po=";
+    sha256 = "sha256-8XS30fRxHPady/snr3gfo8Ryiw9O7EeDezcYYZjod1w=";
   };
-  vendorSha256 = "sha256-TKs3xuZaO9PvlAcV5GDa3Jb36zeVWX3LcdcPxWR6KzE=";
+  vendorSha256 = "sha256-8r7v3526kY+rFHkl1+KEwNbFrSnXPlpZD6kiK4ea+Zg=";
 
   ldflags = [ "-s" "-w" "-X github.com/infracost/infracost/internal/version.Version=v${version}" ];
 
@@ -18,9 +18,16 @@ buildGoModule rec {
   nativeBuildInputs = [ installShellFiles ];
 
   checkInputs = [ terraform ];
+  # Short only runs the unit-tests tagged short
+  checkFlags = [ "-v" "-short" ];
   checkPhase = ''
     runHook preCheck
-    make test
+
+    # Remove tests that require networking
+    rm cmd/infracost/{breakdown_test,diff_test}.go
+    # ldflags are required for some of the version testing
+    go test ./... $checkFlags ''${ldflags:+-ldflags="$ldflags"}
+
     runHook postCheck
   '';