Terraform: Checkpoint provides wrong download URL for Terraform v0.11.19

Created on 9 Jan 2020  ·  8Comments  ·  Source: hashicorp/terraform

https://checkpoint-api.hashicorp.com/v1/check/terraform currently returns the following:

{
  "product": "terraform",
  "current_version": "0.11.19",
  "current_release": 1578525152,
  "current_download_url": 
  "https://github.com/hashicorp/terraform/blob/v0.11.19/CHANGELOG.md",
  "current_changelog_url": "https://releases.hashicorp.com/terraform/0.11.19/",
  "project_website": "https://www.terraform.io",
  "alerts": []
}

Looks like the values for current-download-url and current_changelog_url are swapped

Most helpful comment

And this time I mean it 😁

{
    "product": "terraform",
    "current_version": "0.12.19",
    "current_release": 1578525152,
    "current_download_url": "https://releases.hashicorp.com/terraform/0.12.19/",
    "current_changelog_url": "https://github.com/hashicorp/terraform/blob/v0.12.19/CHANGELOG.md",
    "project_website": "https://www.terraform.io",
    "alerts": []
}

All 8 comments

Yeah this breaks my automation. 😅

VERSION=$(curl --silent https://checkpoint-api.hashicorp.com/v1/check/terraform | jq --raw-output --monochrome-output '.current_version')
ZIPFILE="terraform_${VERSION}_linux_amd64.zip"

echo "Installing terraform $VERSION..."
curl --location --silent "https://releases.hashicorp.com/terraform/${VERSION}/${ZIPFILE}" --output "${ZIPFILE}"
...

The latest version should be 0.12.19, I believe!

Hi and thank you for reporting this! It's since been fixed, cheers!

Hmm, waited a few hours before checking again, but it's still got the wrong content for me...

{
    "product": "terraform",
    "current_version": "0.12.19",
    "current_release": 1578525152,
    "current_download_url": "https://github.com/hashicorp/terraform/blob/v0.12.19/CHANGELOG.md",
    "current_changelog_url": "https://releases.hashicorp.com/terraform/0.12.19/",
    "project_website": "https://www.terraform.io",
    "alerts": []
}

Oh good grief, thank you! I fixed the release numbers (0.11.19 vs 0.12.19) and completely missed the flipped urls - sorry! Fixing (again) right now.

And this time I mean it 😁

{
    "product": "terraform",
    "current_version": "0.12.19",
    "current_release": 1578525152,
    "current_download_url": "https://releases.hashicorp.com/terraform/0.12.19/",
    "current_changelog_url": "https://github.com/hashicorp/terraform/blob/v0.12.19/CHANGELOG.md",
    "project_website": "https://www.terraform.io",
    "alerts": []
}

😺

I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings