infracost: 0.9.21 -> 0.9.22
This commit is contained in:
parent
c7c9008a9b
commit
34b7457691
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "infracost";
|
pname = "infracost";
|
||||||
version = "0.9.21";
|
version = "0.9.22";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "infracost";
|
owner = "infracost";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
repo = "infracost";
|
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}" ];
|
ldflags = [ "-s" "-w" "-X github.com/infracost/infracost/internal/version.Version=v${version}" ];
|
||||||
|
|
||||||
|
@ -18,17 +18,18 @@ buildGoModule rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
# -short only runs the unit-tests tagged short
|
preCheck = ''
|
||||||
checkFlags = [ "-short" ];
|
# Feed in all tests for testing
|
||||||
checkPhase = ''
|
# This is because subPackages above limits what is built to just what we
|
||||||
runHook preCheck
|
# 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
|
||||||
|
buildFlagsArray+="-short"
|
||||||
|
|
||||||
# remove tests that require networking
|
# remove tests that require networking
|
||||||
rm cmd/infracost/{breakdown,diff,hcl,run}_test.go
|
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 = ''
|
postInstall = ''
|
||||||
|
|
|
@ -14293,7 +14293,9 @@ with pkgs;
|
||||||
|
|
||||||
inav-blackbox-tools = callPackage ../tools/misc/inav-blackbox-tools { };
|
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 { };
|
msp430GccSupport = callPackage ../development/misc/msp430/gcc-support.nix { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue