Skip to content
New issue

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

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

Already on GitHub? # to your account

Bug: CLI install script: HTTP 404 for release ZIP #347

Closed
5 tasks done
strarsis opened this issue Jan 9, 2023 · 1 comment
Closed
5 tasks done

Bug: CLI install script: HTTP 404 for release ZIP #347

strarsis opened this issue Jan 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@strarsis
Copy link

strarsis commented Jan 9, 2023

Terms

Description

What's wrong?

The Trellis CLI install script uses an incorrect URL for downloading the release ZIP, resulting in a HTTP 404 (File not found).

What have you tried?

Invoked the command from README, checked the CLI script, the correct release ZIP URL.

What insights have you gained?

The script generates the wrong URL for downloading the release ZIP.

Possible solutions

Making the install script more robust so that it also supports ZIP files that don't follow the currently expected naming scheme.

Temporary workarounds

Manually download the release file (https://github.com/roots/trellis-cli/releases/download/v1.9.0/trellis_Linux_x86_64.tar.gz), extract it (e.g. tar -xzvf trellis_Linux_x86_64.tar.gz), move new trellis binary to PATH (e.g. mv ./trellis $(which trellis)).

Steps To Reproduce

  1. Run Trellis CLI install script.
    Note that installation fails.

Expected Behavior

Install script installs Trellis CLI.

Actual Behavior

Install script fails installing latest Trellis CLI with HTTP 404.

Relevant Log Output

roots/trellis-cli info checking GitHub for latest tag
roots/trellis-cli debug http_download https://github.com/roots/trellis-cli/releases/latest
roots/trellis-cli info found version: 1.9.0 for v1.9.0/Linux/x86_64
roots/trellis-cli debug downloading files into /tmp/tmp.NF87d1h85a
roots/trellis-cli debug http_download https://github.com/roots/trellis-cli/releases/download/v1.9.0/trellis_1.9.0_Linux_x86_64.tar.gz
roots/trellis-cli debug http_download_curl received HTTP status 404

Versions

Trellis CLI 1.8.0

@strarsis strarsis added the bug Something isn't working label Jan 9, 2023
swalkinshaw added a commit that referenced this issue Jan 10, 2023
Fixes #347 - Correct download url in install script
@swalkinshaw
Copy link
Member

Weird... not sure when GitHub changed their download URL format but I've fixed it in #348

Thanks for reporting

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants