Merge pull request #261430 from john-rodewald/tflint-google

`tflint-plugins.tflint-ruleset-google`: init
This commit is contained in:
Florian Klink 2023-12-10 15:46:45 +02:00 committed by GitHub
commit cb417ea2d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 0 deletions

View file

@ -8844,6 +8844,12 @@
githubId = 6321578;
name = "John Rinehart";
};
john-rodewald = {
email = "jnrodewald99@gmail.com";
github = "john-rodewald";
githubId = 51028009;
name = "John Rodewald";
};
john-shaffer = {
email = "jdsha@proton.me";
github = "john-shaffer";

View file

@ -1,3 +1,4 @@
{ callPackage, ... }: {
tflint-ruleset-aws = callPackage ./tflint-ruleset-aws.nix { };
tflint-ruleset-google = callPackage ./tflint-ruleset-google.nix { };
}

View file

@ -0,0 +1,38 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "tflint-ruleset-google";
version = "0.24.0";
src = fetchFromGitHub {
owner = "terraform-linters";
repo = pname;
rev = "v${version}";
hash = "sha256-1eF/uzOYP/gi+ooHN8OfCR2nz+/z98theO0Lr/BBhWM=";
};
vendorHash = "sha256-owpNcsxuP+sG27vv9V7ArMK1NLBNbnw11KpdpVyWAD0=";
# upstream Makefile also does a go test $(go list ./... | grep -v integration)
preCheck = ''
rm integration/integration_test.go
'';
subPackages = [ "." ];
postInstall = ''
mkdir -p $out/github.com/terraform-linters/${pname}/${version}
mv $out/bin/${pname} $out/github.com/terraform-linters/${pname}/${version}/
'';
meta = with lib; {
homepage = "https://github.com/terraform-linters/tflint-ruleset-google";
description = "TFLint ruleset plugin for Terraform Google Provider";
platforms = platforms.unix;
maintainers = with maintainers; [ john-rodewald ];
license = with licenses; [ mpl20 ];
};
}