tofuutils / pre-commit-opentofu

pre-commit git hooks to take care of OpenTofu configurations
MIT License
38 stars 3 forks source link

Missing Tofu Binary in Docker Image #11

Open Sohan-Opstree opened 6 days ago

Sohan-Opstree commented 6 days ago

I encountered an issue with the tofuutils/pre-commit-opentofu Docker image. Currently, the image contains the tofu package as a ZIP file (tofu_1.6.1_linux_amd64.zip), but it does not include the extracted tofu binary, which prevents the command from running as expected.

Details:

Secreenshot of zip tofu binary.

Screenshot from 2024-09-24 18-13-25

image

Suggested Solution:

Please consider updating the Docker image to include the extracted tofu binary instead of the ZIP file. This would allow users to run the tofu command without needing to manually extract the binary.

kvendingoldo commented 6 days ago

Thank you for reporting! I think, that it should be installed into image via tenv.

Sohan-Opstree commented 5 days ago

Could you build a new image for Tofu so that I can use it in running tofu pre-commit hooks