ariga / terraform-provider-atlas

Terraform Provider for Atlas
https://atlasgo.io
Apache License 2.0
55 stars 8 forks source link

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

Open ei-grad opened 1 month ago

ei-grad commented 1 month ago

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 commented 1 month ago
    atlas = {
      source = "ariga/atlas"
      version = "0.8.4"
    }

Specifing fixed version - works.