Skip to content

download-and-extract-tar task inserts extra slash, causing some downloads to fail #577

@kirkrodrigues

Description

@kirkrodrigues

Bug

Some recent workflow runs are failing because nodejs cannot be downloaded with the error:

task: [download-and-extract-tar-node-v22.4.0-linux-x64.tar.xz] curl --fail --location --show-error "https://nodejs.org/dist/v22.4.0//node-v22.4.0-linux-x64.tar.xz" --output "/home/kirk/projects/builds/kr-clp/nodejs-22-tmp/node-v22.4.0-linux-x64.tar.xz"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
task: Failed to run task "lint:js-check": exit status 22

Examining the URL, we can see that there's an extra slash before the tar name. Presumably, nodejs has changed the way URLs are parsed by their server, exposing the bug in the task.

CLP version

426cc3d

Environment

GitHub workflow.

Reproduction steps

task lint:js-check

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