Updating provider plugins errors out
After upgrading a provider plugin and committing changes to .terraform.lock.hcl
I get the following during CI:
$ gitlab-terraform init
Initializing the backend...
Successfully configured the backend "http"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
- Reusing previous version of pagerduty/pagerduty from the dependency lock file
- Reusing previous version of cloudflare/cloudflare from the dependency lock file
Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider
pagerduty/pagerduty: locked provider registry.terraform.io/pagerduty/pagerduty
1.8.0 does not match configured version constraint 1.9.4; must use terraform
init -upgrade to allow selection of new versions
Error: Failed to query available provider packages
Could not retrieve the list of available versions for provider
cloudflare/cloudflare: locked provider
registry.terraform.io/cloudflare/cloudflare 2.15.0 does not match configured
version constraint 2.18.0; must use terraform init -upgrade to allow selection
of new versions
It would be great if we could upgrade according to the lockfile…