Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ enter/exit development mode #140

Merged
merged 1 commit into from
Oct 17, 2024
Merged

✨ enter/exit development mode #140

merged 1 commit into from
Oct 17, 2024

Conversation

afiune
Copy link
Contributor

@afiune afiune commented Oct 17, 2024

This change adds easier Make directives to enter and exit development mode, where you can use any Terraform plan to test the built provider.

It also adds a help directive that looks like:

$ make help
lint                 Runs go linter
generate             Generate or update documentation
fmt                  Runs go formatter
dev/enter            Updates the terraformrc to point to the DEV_BIN_PATH. Installs the provider to the DEV_BIN_PATH
dev/exit             Removes development provider package from DEV_BIN_PATH
write-terraform-rc   Write to terraformrc file to mirror mondoohq/mondoo to DEV_BIN_PATH
remove-terraform-rc  Remove the terraformrc file
help                 Show this help
test                 Runs go tests
hcl/fmt              Runs terraform formatter
hcl/lint             Runs terraform linter

This change adds easier Make directives to enter and exit development
mode, where you can use any Terraform plan to test the built provider.

It also adds a `help` directive that looks like:
```
$ make help
lint                 Runs go linter
generate             Generate or update documentation
fmt                  Runs go formatter
dev/enter            Updates the terraformrc to point to the DEV_BIN_PATH. Installs the provider to the DEV_BIN_PATH
dev/exit             Removes development provider package from DEV_BIN_PATH
write-terraform-rc   Write to terraformrc file to mirror mondoohq/mondoo to DEV_BIN_PATH
remove-terraform-rc  Remove the terraformrc file
help                 Show this help
test                 Runs go tests
hcl/fmt              Runs terraform formatter
hcl/lint             Runs terraform linter
```

Signed-off-by: Salim Afiune Maya <[email protected]>
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition @afiune

@chris-rock chris-rock merged commit 8852265 into main Oct 17, 2024
19 checks passed
@chris-rock chris-rock deleted the afiune/dev branch October 17, 2024 10:06
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants