Skip to content

Error: ENOENT: no such file or directory, copyfile '/home/runner/work/_temp/...' -> '/opt/hostedtoolcache/ghcup/0.1.50.2/x64/ghcup' #134

@ocramz

Description

@ocramz

Background:

I had a successfully cached build, and at the next push this failure showed up.

Error log

Run haskell-actions/setup@v2
Preparing to setup a Haskell environment
Resolved ghc 9.10 to 9.10.3
Resolved cabal latest to 3.16.1.0
Resolved stack latest to 3.7.1
Preparing ghcup environment
Preparing ghc environment
  node:internal/fs/promises:624
    return await PromisePrototypeThen(
           ^
  
  Error: ENOENT: no such file or directory, copyfile '/home/runner/work/_temp/9bff0ef5-6540-4b8b-8632-b04c9628f5d0' -> '/opt/hostedtoolcache/ghcup/0.1.50.2/x64/ghcup'
      at async Object.copyFile (node:internal/fs/promises:624:10) {
    errno: -2,
    code: 'ENOENT',
    syscall: 'copyfile',
    path: '/home/runner/work/_temp/9bff0ef5-6540-4b8b-8632-b04c9628f5d0',
    dest: '/opt/hostedtoolcache/ghcup/0.1.50.2/x64/ghcup'
  }
  
  Node.js v24.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions