tofuutils / tenv

OpenTofu / Terraform / Terragrunt and Atmos version manager
https://tofuutils.github.io/tenv/
Apache License 2.0
662 stars 32 forks source link

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

Closed YevhenLodovyi closed 3 months ago

YevhenLodovyi commented 3 months ago

Hi,

STR:

Actual Result:

Expected Result:

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 commented 3 months ago

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

dvaumoron commented 3 months ago

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)