Skip to content

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

@strarsis

Description

@strarsis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions