Merge pull request #164591 from 06kellyjac/infracost

infracost: 0.9.18 -> 0.9.20
This commit is contained in:
Bobby Rong 2022-03-19 10:42:27 +08:00 committed by GitHub
commit c621d2cfdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,15 +2,15 @@
buildGoModule rec {
pname = "infracost";
version = "0.9.18";
version = "0.9.20";
src = fetchFromGitHub {
owner = "infracost";
rev = "v${version}";
repo = "infracost";
sha256 = "sha256-ukFY6Iy7RaUjECbMCMdOkulMdzUlsoBnyRiuzldXVc8=";
sha256 = "sha256-ujoKnf6f9rrPIxvWlzVnC6q+2BxzhpXgb66clgAuC+8=";
};
vendorSha256 = "sha256-D4tXBXtD3FlWvp4GPIuo/2p3MKg81DVPT5pKVOGe/5c=";
vendorSha256 = "sha256-TfO3+pGxR9dPzigkx89a/Ak+tKiBa6Z0a6U4kIdRsSQ=";
ldflags = [ "-s" "-w" "-X github.com/infracost/infracost/internal/version.Version=v${version}" ];
@ -23,9 +23,9 @@ buildGoModule rec {
checkPhase = ''
runHook preCheck
# Remove tests that require networking
rm cmd/infracost/{breakdown_test,diff_test,run_test}.go
# 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