mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
infracost: 0.9.8 -> 0.9.18
This commit is contained in:
parent
8aa520b21b
commit
2673dd0e2b
@ -2,31 +2,31 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "infracost";
|
pname = "infracost";
|
||||||
version = "0.9.8";
|
version = "0.9.18";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "infracost";
|
owner = "infracost";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
repo = "infracost";
|
repo = "infracost";
|
||||||
sha256 = "sha256-8XS30fRxHPady/snr3gfo8Ryiw9O7EeDezcYYZjod1w=";
|
sha256 = "sha256-ukFY6Iy7RaUjECbMCMdOkulMdzUlsoBnyRiuzldXVc8=";
|
||||||
};
|
};
|
||||||
vendorSha256 = "sha256-8r7v3526kY+rFHkl1+KEwNbFrSnXPlpZD6kiK4ea+Zg=";
|
vendorSha256 = "sha256-D4tXBXtD3FlWvp4GPIuo/2p3MKg81DVPT5pKVOGe/5c=";
|
||||||
|
|
||||||
ldflags = [ "-s" "-w" "-X github.com/infracost/infracost/internal/version.Version=v${version}" ];
|
ldflags = [ "-s" "-w" "-X github.com/infracost/infracost/internal/version.Version=v${version}" ];
|
||||||
|
|
||||||
# Install completions post-install
|
subPackages = [ "cmd/infracost" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
checkInputs = [ terraform ];
|
# -short only runs the unit-tests tagged short
|
||||||
# Short only runs the unit-tests tagged short
|
checkFlags = [ "-short" ];
|
||||||
checkFlags = [ "-v" "-short" ];
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
|
|
||||||
# Remove tests that require networking
|
# Remove tests that require networking
|
||||||
rm cmd/infracost/{breakdown_test,diff_test}.go
|
rm cmd/infracost/{breakdown_test,diff_test,run_test}.go
|
||||||
# ldflags are required for some of the version testing
|
|
||||||
go test ./... $checkFlags ''${ldflags:+-ldflags="$ldflags"}
|
go test $checkFlags ''${ldflags:+-ldflags="$ldflags"} -v -p $NIX_BUILD_CORES ./...
|
||||||
|
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user