@@ -13,16 +13,14 @@ TERRAFORM_PROVIDER_DEV_VERSION=1.0.0
1313TERRAFORM_PLATFORM =$(shell terraform version -json | jq -r .platform)
1414TERRAFORM_SYSDIG_PLUGIN_DIR =$(TERRAFORM_PLUGIN_ROOT_DIR ) /$(TERRAFORM_PROVIDER_REFERENCE_NAME ) /$(TERRAFORM_PROVIDER_NAME ) /$(TERRAFORM_PROVIDER_DEV_VERSION ) /$(TERRAFORM_PLATFORM )
1515
16+ install-tools :
17+ go install golang.org/x/tools/cmd/stringer@latest
18+
1619default : build
1720
1821build : fmtcheck
1922 go install
2023
21- check : fmtcheck errcheck check-vuln doccheck lint
22-
23- check-vuln :
24- govulncheck .
25-
2624install : fmtcheck
2725 go build -o terraform-provider-sysdig
2826 mkdir -p $(TERRAFORM_SYSDIG_PLUGIN_DIR )
@@ -66,35 +64,13 @@ fmtcheck:
6664 @sh -c " '$( CURDIR) /scripts/gofmtcheck.sh'"
6765
6866lint :
69- golangci-lint run --timeout 1h --build-tags unit,tf_acc_sysdig_monitor,tf_acc_sysdig_secure,tf_acc_ibm_monitor,tf_acc_ibm_secure ./...
67+ golangci-lint run --timeout 1h ./...
7068
7169errcheck :
7270 @sh -c " '$( CURDIR) /scripts/errcheck.sh'"
7371
74- # Leverages on nix compiling and configuring the provider using the package.nix and the devshell
75- init-provider-to-test :
76- echo ' terraform { ' > main.tf
77- echo ' required_providers { sysdig = { ' >> main.tf
78- echo ' source = "sysdiglabs/sysdig" ' >> main.tf
79- echo ' version = "1.0.0-local" ' >> main.tf
80- echo ' } }' >> main.tf
81- echo ' }' >> main.tf
82- terraform init
83-
84- .PHONY : terraform-providers-schema
85- terraform-providers-schema :
86- rm -rf terraform-providers-schema
87- rm .terraform.lock.hcl
88- mkdir -p terraform-providers-schema
89-
90- doccheck : terraform-providers-schema init-provider-to-test
91- terraform providers schema -json > terraform-providers-schema/schema.json
92- tfproviderdocs check \
93- -allowed-resource-subcategories-file website/allowed-subcategories.txt \
94- -enable-contents-check \
95- -provider-source registry.terraform.io/sysdiglabs/sysdig \
96- -providers-schema-json terraform-providers-schema/schema.json \
97- -require-resource-subcategory
72+ vendor-status :
73+ @govendor status
9874
9975test-compile :
10076 @if [ " $( TEST) " = " ./..." ]; then \
0 commit comments