You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The validation portion of test_lint can fail when there is a lockfile present locally, since most projects have the lockfiles .gitignored, but generation of them can't be suppressed
However, since in some places, the lockfile is checked in, @apeabody says it probably isn't ideal to just force -upgrade on all terraform init calls as I'd originally proposed in the linked issue.
So perhaps there should be a way to control the behavior. Removing the lockfile might also be an option, but that seems riskier / more unexpected or undesirable from the standpoint of the end user.
Another option would be to do the whole init / validate in a temporary copy (perhaps the one that I think is already checked out?)
Expected behavior
The validation to succeed when a new version has come out since the lockfile was last created.
Observed behavior
Don't have the exact error handy now, but it's the one where the version is locked and can't be updated without init -upgrade
TL;DR
The validation portion of
test_lint
can fail when there is a lockfile present locally, since most projects have the lockfiles .gitignored, but generation of them can't be suppressedHowever, since in some places, the lockfile is checked in, @apeabody says it probably isn't ideal to just force
-upgrade
on allterraform init
calls as I'd originally proposed in the linked issue.So perhaps there should be a way to control the behavior. Removing the lockfile might also be an option, but that seems riskier / more unexpected or undesirable from the standpoint of the end user.
Another option would be to do the whole init / validate in a temporary copy (perhaps the one that I think is already checked out?)
Expected behavior
The validation to succeed when a new version has come out since the lockfile was last created.
Observed behavior
Don't have the exact error handy now, but it's the one where the version is locked and can't be updated without
init -upgrade
Terraform Configuration
n/a
Terraform Version
Additional information
See discussion starting at #2617 (comment)
The text was updated successfully, but these errors were encountered: