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

Add pre-commit / pre-commit-terraform #14024

Open
Gowiem opened this issue Jul 24, 2023 · 7 comments
Open

Add pre-commit / pre-commit-terraform #14024

Gowiem opened this issue Jul 24, 2023 · 7 comments

Comments

@Gowiem
Copy link
Contributor

Gowiem commented Jul 24, 2023

package name

pre-commit/pre-commit
pre-commit/pre-commit-terraform

Overview

These are two packages that I saw as missing and figured I'd open this up for discussion. Are there any heavy python / pip installed packages that aqua manages today? That seems to be the requirement for both of these as their main installation method is pip.

Reference

@suzuki-shunsuke
Copy link
Member

Thank you for opening the issue.

aqua doesn't support running external commands such as pip install.

This limitation is a design of aqua.

https://aquaproj.github.io/docs/reference/restriction/#aqua-doesnt-support-running-any-external-commands-to-install-tools

@suzuki-shunsuke
Copy link
Member

Maybe aqua can support pip install.
I'll consider it.

@Gowiem
Copy link
Contributor Author

Gowiem commented Jul 25, 2023

@suzuki-shunsuke if it's possible, I think that would unlock a lot of important packages that folks will be requesting as aqua gains more traction 💯

@suzuki-shunsuke
Copy link
Member

We're working on supporting pre-commit (pypi packages) on aquaproj/aqua#2128 ,
but I'm not sure if aqua can support pre-commit-terraform.

I'm not familiar with this tool, but I read https://github.com/antonbabenko/pre-commit-terraform#how-to-install .
In the document, pre-commit-terraform is installed by adding pre-commit-terraform to .pre-commit-config.yaml and running pre-commit run -a.

What do you think?

@nikolay
Copy link

nikolay commented Oct 6, 2023

@Gowiem @suzuki-shunsuke This is precisely how I install it declaratively, too - by adding it to .pre-commit-config.yaml and then pre-commit automatically installs, upgrades, etc.

@suzuki-shunsuke
Copy link
Member

Then pre-commit-terraform is managed by pre-commit, so aqua doesn't have to support pre-commit-terraform.
Is it correct?

@nikolay
Copy link

nikolay commented Oct 6, 2023

@suzuki-shunsuke Correct!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants