akamai / cli-terraform

Akamai CLI plugin Admin Support for multiple OpenAPI resource types
Apache License 2.0
21 stars 11 forks source link

Binary Install is Failing (URL Mismatch) #6

Closed DidierFort closed 2 years ago

DidierFort commented 3 years ago

Hello,

When I try to install cli-terraform, I obtain the following output:

$ AKAMAI_LOG=debug akamai install terraform
 DEBUG[0000] INSTALL START             command=install
Attempting to fetch command from https://github.com/akamai/cli-terraform.git... ... [OK]
 DEBUG[0000] Go binary found: /usr/bin/go command=install
 DEBUG[0000] /usr/bin/go version: go version go1.10.4 linux/amd64 command=install
 DEBUG[0000] Go Version found: 1.10.4  command=install
Installing... ... [WARN]
higher version is required to install this command: required: go:1.12.0, have: 1.10.4. Please upgrade your runtime
  WARN[0000] higher version is required to install this command: required: go:1.12.0, have: 1.10.4. Please upgrade your runtime command=install
? Binary command(s) found, would you like to download and install it? Yes
 DEBUG[0004] Fetching binary from https://github.com/akamai/cli-terraform/releases/download/0.2.0/akamai-terraform-0.2.0-linuxamd64 command=installDownloading binary... [          ] 
Downloading binary... ... [FAIL]
Unable to download binary: invalid response status while fetching command binary: 404
 ERROR[0004] Unable to download binary: invalid response status while fetching command binary: 404 command=install
 ERROR[0004] INSTALL ERROR: Unable to install selected package command=install
Unable to install selected package

The problem is that the install command tries to fetch: https://github.com/akamai/cli-terraform/releases/download/0.2.0/akamai-terraform-0.2.0-linuxamd64

Whereas the real URL is: https://github.com/akamai/cli-terraform/releases/download/v0.2.0/akamai-terraform-0.2.0-linuxamd64

Regards, Didier

DidierFort commented 3 years ago

I opened a pull request to fix the issue.

IanCassTwo commented 3 years ago

Did you update to the latest Akamai CLI?

DidierFort commented 3 years ago

I got the error when upgrading to 0.2.0. I actually fixed the issue in a pull request.

DidierFort commented 3 years ago

I realized you asked about the CLI, I have been on v1.2.1 already: $ akamai upgrade Checking for upgrades... ... [OK] Akamai CLI (v1.2.1) is already up-to-date

robertolopezlopez commented 2 years ago

This defect is preventing Windows CLI users from installing cli-terraform. Please, address it at your earliest convenience.

Regards

lkowalsk-akamai-com commented 2 years ago

Hi, this issue is now fixed with v0.3.1