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

tfupdate -> cannot find directory #371

Closed
awaismemon26 opened this issue Apr 20, 2022 · 2 comments · Fixed by #375
Closed

tfupdate -> cannot find directory #371

awaismemon26 opened this issue Apr 20, 2022 · 2 comments · Fixed by #375
Assignees
Labels
bug Something isn't working estimate/2h Need 2 hours to be done hook/tfupdate Bash hook

Comments

@awaismemon26
Copy link

awaismemon26 commented Apr 20, 2022

Describe the bug

Tfupdate hook working fine with pre-commit run command, but when git commit is performed. tfupdate fails to find directory

How can we reproduce it?

run git commit

Environment information

MacOS

  • git commit -m "test" output:
failed to open path: stat modules/module1: no such file or directory
failed to open path: stat modules/module2: no such file or directory

$ uname -a
Darwin MBP.local 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64

-->

* Tools availability and versions:
```bash
pre-commit : `v1.68.0`
python: `3.8.6`
tfupdate: `0.6.5`
  • .pre-commit-config.yaml:
file content
- repo: https://github.com/antonbabenko/pre-commit-terraform
    rev: v1.68.0
    hooks:
      - id: tfupdate
        name: Update Google provider to specified version 
        args:
          - --args=provider google
          - --args=--version 4.18.0
      - id: tfupdate
        name: Update Terraform provider to specified version
        args:
          - --args=terraform
          - --args=--version 1.1.8
@awaismemon26 awaismemon26 added area/local_installation bug Something isn't working labels Apr 20, 2022
@MaxymVlasov
Copy link
Collaborator

Bug confirmed.

  • pre-commit run not work
  • pre-commit run -a works fine.

@antonbabenko
Copy link
Owner

This issue has been resolved in version 1.70.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working estimate/2h Need 2 hours to be done hook/tfupdate Bash hook
Projects
None yet
3 participants