Skip to content

Attemps to download .exe version for Linux when Node version not found in cache #714

Closed
@domdomegg

Description

Description:
When a node version is not found in the cache, for example when using 'current' or '19.8.1' at the moment, it appears that the action tries to download the .exe version despite running on a linux system.

Action version:
Specify the action version

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
node: 'current' (resolved to v19.8.1)
package manager: npm

Repro steps:

GitHub workflow:

name: Repro
on: push
jobs:
  repro:
    runs-on: ubuntu-latest
    steps:
      - name: Use Node.js
        uses: actions/setup-node@v3
        with:
          node-version: '19.8.1'

Expected behavior:
The action downloads the binaries from the node site.

Actual behavior:
The action attempts to download the .exe version, which fails.

Example logs:
https://github.com/domdomegg/typescript-library-template/actions/runs/4430005745/jobs/7771191230

getting latest node version...
Attempting to download v19.8.1...
Not found in manifest. Falling back to download directly from Node
Acquiring 19.8.1 - x64 from https://nodejs.org/dist/v19.8.1/node-v19.8.1-linux-x64.tar.gz
Downloading only node binary from https://nodejs.org/dist/v19.8.1/win-x64/node.exe
Error: Unexpected HTTP response: 404

Metadata

Assignees

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