Skip to content

Commit bc56bfc

Browse files
committed
chore(nix): temporarily remove nix related changes
1 parent 2ecb3e9 commit bc56bfc

File tree

6 files changed

+7
-231
lines changed

6 files changed

+7
-231
lines changed

.envrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
*.dll
22
*.exe
33
.DS_Store
4-
.secrets
5-
.direnv/
4+
.envrc
65
.env
76
example.tf
87
terraform.tfplan
@@ -54,9 +53,3 @@ oanc
5453
# Local test folder
5554
local-terraform-test/
5655
dist/
57-
58-
# Nix result
59-
result
60-
61-
main.tf
62-
terraform-providers-schema/

GNUmakefile

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ TERRAFORM_PROVIDER_DEV_VERSION=1.0.0
1313
TERRAFORM_PLATFORM=$(shell terraform version -json | jq -r .platform)
1414
TERRAFORM_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+
1619
default: build
1720

1821
build: fmtcheck
1922
go install
2023

21-
check: fmtcheck errcheck check-vuln doccheck lint
22-
23-
check-vuln:
24-
govulncheck .
25-
2624
install: 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

6866
lint:
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

7169
errcheck:
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

9975
test-compile:
10076
@if [ "$(TEST)" = "./..." ]; then \

flake.lock

Lines changed: 0 additions & 78 deletions
This file was deleted.

flake.nix

Lines changed: 0 additions & 88 deletions
This file was deleted.

package.nix

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)