Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.9.0 missing SHA256SUMS file prevents provider usage without specifing explicit version #169

Open
ei-grad opened this issue Oct 7, 2024 · 1 comment

Comments

@ei-grad
Copy link

ei-grad commented Oct 7, 2024

Having this simple configuration:

mkdir reproduce-broken-atlas
cd reproduce-broken-atlas

cat > main.tf << EOF
terraform {
  required_providers {
    atlas = {
      source = "ariga/atlas"
      version = ">= 0.8"
    }
  }
}
EOF

Running terraform init fails:

$ TF_LOG=debug terraform init
2024-10-07T15:35:21.015+0300 [INFO]  Terraform version: 1.9.6
2024-10-07T15:35:21.015+0300 [DEBUG] using github.com/hashicorp/go-tfe v1.58.0
2024-10-07T15:35:21.015+0300 [DEBUG] using github.com/hashicorp/hcl/v2 v2.20.0
2024-10-07T15:35:21.015+0300 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-10-07T15:35:21.015+0300 [DEBUG] using github.com/zclconf/go-cty v1.14.4
2024-10-07T15:35:21.015+0300 [INFO]  Go runtime version: go1.23.1
2024-10-07T15:35:21.015+0300 [INFO]  CLI args: []string{"terraform", "init"}
2024-10-07T15:35:21.015+0300 [DEBUG] Attempting to open CLI config file: /home/ei-grad/.terraformrc
2024-10-07T15:35:21.015+0300 [INFO]  Loading CLI configuration from /home/ei-grad/.terraformrc
2024-10-07T15:35:21.015+0300 [DEBUG] checking for credentials in "/home/ei-grad/.terraform.d/plugins"
2024-10-07T15:35:21.015+0300 [DEBUG] checking for credentials in "/home/ei-grad/.terraform.d/plugins/linux_amd64"
2024-10-07T15:35:21.015+0300 [DEBUG] Explicit provider installation configuration is set
2024-10-07T15:35:21.015+0300 [INFO]  CLI command args: []string{"init"}
Initializing the backend...
2024-10-07T15:35:21.016+0300 [DEBUG] checking for provisioner in "."
2024-10-07T15:35:21.029+0300 [DEBUG] checking for provisioner in "/usr/bin"
2024-10-07T15:35:21.029+0300 [DEBUG] checking for provisioner in "/home/ei-grad/.terraform.d/plugins"
2024-10-07T15:35:21.029+0300 [DEBUG] checking for provisioner in "/home/ei-grad/.terraform.d/plugins/linux_amd64"
Initializing provider plugins...
- Finding ariga/atlas versions matching ">= 0.8.0"...
2024-10-07T15:35:21.030+0300 [DEBUG] Service discovery for registry.terraform.io at https://registry.terraform.io/.well-known/terraform.json
2024-10-07T15:35:21.270+0300 [DEBUG] GET https://registry.terraform.io/v1/providers/ariga/atlas/versions
2024-10-07T15:35:21.483+0300 [DEBUG] GET https://registry.terraform.io/v1/providers/ariga/atlas/0.9.0/download/linux/amd64
2024-10-07T15:35:21.720+0300 [DEBUG] GET https://github.com/ariga/terraform-provider-atlas/releases/download/v0.9.0/terraform-provider-atlas_0.9.0_SHA256SUMS
╷
│ Error: Failed to install provider
│ 
│ Error while installing ariga/atlas v0.9.0: could not query provider registry for registry.terraform.io/ariga/atlas: failed to retrieve authentication checksums for
│ provider: 404 Not Found returned from github.com
╵
Command exit code: 1
@ei-grad
Copy link
Author

ei-grad commented Oct 7, 2024

    atlas = {
      source = "ariga/atlas"
      version = "0.8.4"
    }

Specifing fixed version - works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant