mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #168500 from 06kellyjac/infracost
infracost: 0.9.21 -> 0.9.22
This commit is contained in:
commit
6a7ec1d275
@ -2,15 +2,15 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "infracost";
|
||||
version = "0.9.21";
|
||||
version = "0.9.22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "infracost";
|
||||
rev = "v${version}";
|
||||
repo = "infracost";
|
||||
sha256 = "sha256-LoIZbA1K1s3ZLHlRz2SOFxC4nv/Vgpae0qdxIcvAVRQ=";
|
||||
sha256 = "sha256-JYC5wsv3JIqzv2woHits3wMpvPZ70lVrAZDh/DB1SVE=";
|
||||
};
|
||||
vendorSha256 = "sha256-TfO3+pGxR9dPzigkx89a/Ak+tKiBa6Z0a6U4kIdRsSQ=";
|
||||
vendorSha256 = "sha256-/B3hXHRNk6DJ6iC0RalsoWsb6vK0md8asnLkhSAeHXU=";
|
||||
|
||||
ldflags = [ "-s" "-w" "-X github.com/infracost/infracost/internal/version.Version=v${version}" ];
|
||||
|
||||
@ -18,17 +18,18 @@ buildGoModule rec {
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
preCheck = ''
|
||||
# Feed in all tests for testing
|
||||
# This is because subPackages above limits what is built to just what we
|
||||
# want but also limits the tests
|
||||
unset subPackages
|
||||
|
||||
# checkFlags aren't correctly passed through via buildGoModule so we use buildFlagsArray
|
||||
# -short only runs the unit-tests tagged short
|
||||
checkFlags = [ "-short" ];
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
buildFlagsArray+="-short"
|
||||
|
||||
# remove tests that require networking
|
||||
rm cmd/infracost/{breakdown,diff,hcl,run}_test.go
|
||||
# checkFlags aren't correctly passed through via buildGoModule
|
||||
go test $checkFlags ''${ldflags:+-ldflags="$ldflags"} -v -p $NIX_BUILD_CORES ./...
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
@ -14295,7 +14295,9 @@ with pkgs;
|
||||
|
||||
inav-blackbox-tools = callPackage ../tools/misc/inav-blackbox-tools { };
|
||||
|
||||
infracost = callPackage ../tools/misc/infracost { };
|
||||
infracost = callPackage ../tools/misc/infracost {
|
||||
buildGoModule = buildGo118Module;
|
||||
};
|
||||
|
||||
msp430GccSupport = callPackage ../development/misc/msp430/gcc-support.nix { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user