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

lock file is created even if we do not download the version #197

Closed
YevhenLodovyi opened this issue Jul 3, 2024 · 2 comments · Fixed by #200
Closed

lock file is created even if we do not download the version #197

YevhenLodovyi opened this issue Jul 3, 2024 · 2 comments · Fixed by #200
Assignees
Labels
enhancement New feature or request

Comments

@YevhenLodovyi
Copy link

Hi,

STR:

  • create terragrunt project with a lot of dependencies
  • download all required terraform version(s)
  • enable auto-download (for future)
export export TENV_AUTO_INSTALL=false
  • run terragrunt plan

Actual Result:

  • warning messages about lock file
2024-07-03T17:32:09.777+0300 [WARN]  tenv: can not write .lock file, will retry: error="open /Users/yevhen/.tenv/Terraform/.lock: file exists"
2024-07-03T17:32:14.172+0300 [WARN]  tenv: can not write .lock file, will retry: error="open /Users/yevhen/.tenv/Terraform/.lock: file exists"
2024-07-03T17:32:16.704+0300 [WARN]  tenv: can not write .lock file, will retry: error="open /Users/yevhen/.tenv/Terraform/.lock: file exists"

Expected Result:

  • create lock file if we need to download the version

It looks like we create the lock even if we do not need to download the terraform. I have a lot of dependencies and terragrunt runs init and output and as a result i can observe warn messages about locks

@kvendingoldo kvendingoldo added the bug Something isn't working label Jul 3, 2024
@kvendingoldo
Copy link
Collaborator

Thank you for reporting. Looks like a bug. We'll check it soon

@dvaumoron dvaumoron added enhancement New feature or request and removed bug Something isn't working labels Jul 3, 2024
@dvaumoron
Copy link
Contributor

Hi @YevhenLodovyi,

we can improve with a double check (one before lock, one after to ensure no other process is installing or uninstalling the tool)

@dvaumoron dvaumoron self-assigned this Jul 3, 2024
dvaumoron added a commit that referenced this issue Jul 3, 2024
dvaumoron added a commit that referenced this issue Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants