Skip to content

disable warning on init - Warning: Incomplete lock file information for providers #31856

Open
@oprudkyi

Description

@oprudkyi

Terraform Version

1.3.0

Use Cases

when lock file is unused really (recreated each time in ci/cd) there is always warning, which flood output with meaning-less info

>terraform init
...
╷
│ Warning: Incomplete lock file information for providers
│ 
│ Due to your customized provider installation methods, Terraform was forced to calculate lock file checksums locally for the following providers:
│   - hashicorp/google
│ 
│ The current .terraform.lock.hcl file only includes checksums for linux_amd64, so Terraform running on another platform will fail to install these providers.
│ 
│ To calculate additional checksums for another platform, run:
│   terraform providers lock -platform=linux_amd64
│ (where linux_amd64 is the platform to generate)
╵

Attempted Solutions

Proposal

Some option, like --ignore-lock-warning to disable warning entirely

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions