lol

Merge pull request #157500 from 06kellyjac/infracost

infracost: 0.9.8 -> 0.9.18

authored by

Renaud and committed by
GitHub
c5e93c84 606cd645

+10 -10
+10 -10
pkgs/tools/misc/infracost/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "infracost"; 5 - version = "0.9.8"; 5 + version = "0.9.18"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "infracost"; 9 9 rev = "v${version}"; 10 10 repo = "infracost"; 11 - sha256 = "sha256-8XS30fRxHPady/snr3gfo8Ryiw9O7EeDezcYYZjod1w="; 11 + sha256 = "sha256-ukFY6Iy7RaUjECbMCMdOkulMdzUlsoBnyRiuzldXVc8="; 12 12 }; 13 - vendorSha256 = "sha256-8r7v3526kY+rFHkl1+KEwNbFrSnXPlpZD6kiK4ea+Zg="; 13 + vendorSha256 = "sha256-D4tXBXtD3FlWvp4GPIuo/2p3MKg81DVPT5pKVOGe/5c="; 14 14 15 15 ldflags = [ "-s" "-w" "-X github.com/infracost/infracost/internal/version.Version=v${version}" ]; 16 16 17 - # Install completions post-install 17 + subPackages = [ "cmd/infracost" ]; 18 + 18 19 nativeBuildInputs = [ installShellFiles ]; 19 20 20 - checkInputs = [ terraform ]; 21 - # Short only runs the unit-tests tagged short 22 - checkFlags = [ "-v" "-short" ]; 21 + # -short only runs the unit-tests tagged short 22 + checkFlags = [ "-short" ]; 23 23 checkPhase = '' 24 24 runHook preCheck 25 25 26 26 # Remove tests that require networking 27 - rm cmd/infracost/{breakdown_test,diff_test}.go 28 - # ldflags are required for some of the version testing 29 - go test ./... $checkFlags ''${ldflags:+-ldflags="$ldflags"} 27 + rm cmd/infracost/{breakdown_test,diff_test,run_test}.go 28 + 29 + go test $checkFlags ''${ldflags:+-ldflags="$ldflags"} -v -p $NIX_BUILD_CORES ./... 30 30 31 31 runHook postCheck 32 32 '';