Skip to content

Incomplete lock file information for providers #2150

@cfsb-jrose

Description

@cfsb-jrose

Describe the Bug

Atmos raises a warning when using JIT vendoring

│ 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/aws
│   - integrations/github
│ 
│ 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)

Expected Behavior

No warning

Steps to Reproduce

Running atmos tf plan --all on any stack that uses JIT vendoring. For example:

import:
  - mixins/providers

components:
  terraform:
    github/repository:
      metadata:
        type: abstract # ensures this component cannot be used as a standalone item in a stack
      settings:
        validation:
          github/repository:
            schema_type: jsonschema
            schema_path: "github/repository/defaults.json"
            description: Validate 'github/repository' component variables using JSON Schema
      source:
        uri: github.com/cloudposse-terraform-components/aws-github-repository//src
        version: v0.3.0
        excluded_paths:
          - "providers.tf"
      vars:
        owner: cfsbny
        region: us-east-1
        repository:
          allow_merge_commit: true
          allow_squash_merge: true
          allow_rebase_merge: true
          allow_auto_merge: false
          auto_init: true
          default_branch: main
          delete_branch_on_merge: true
          gitignore_template: TeX
          license_template: GPL-3.0
          squash_merge_commit_message: PR_BODY
          visibility: internal

Screenshots

Image

Environment

Additional Context

No response

Metadata

Metadata

Labels

bug🐛 An issue with the system

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions