Skip to content

Failure on self-hosted runners using Node 18 - ReferenceError: File is not defined #535

@my1e5

Description

@my1e5

v6.6.0 is failing at the set up stage for me. Using v6.5.0 works fine. I'm using a self-hosted runner with Gitea.

v6.6.0

    - name: Set up uv
      id: setup-uv
      uses: astral-sh/[email protected]
      with:
        enable-cache: true
        prune-cache: false
        version: 0.8.8
        python-version: ${{ matrix.python-version }}

These are the logs I'm currently able to get:

/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:113176
webidl.is.File = webidl.util.MakeTypeAssertion(File)
                                               ^
ReferenceError: File is not defined
    at 47879 (/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:113176:48)
    at __nccwpck_require__ (/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:135576:43)
    at 73168 (/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:110888:20)
    at __nccwpck_require__ (/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:135576:43)
    at 60660 (/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:106127:5)
    at __nccwpck_require__ (/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:135576:43)
    at 99051 (/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:110229:90)
    at __nccwpck_require__ (/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:135576:43)
    at 54398 (/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:106855:5)
    at __nccwpck_require__ (/run/act/actions/91a3cdd30079ddbfaf6f1ef1a5a84e50cfd0ec07e82e0de5aee5da2ba2e77383/dist/setup/index.js:135576:43)
Node.js v18.20.8
  ❌  Failure - Main Set up uv
exitcode '1': failure

v6.5.0

This is working fine.

    - name: Set up uv
      id: setup-uv
      uses: astral-sh/[email protected]
      with:
        enable-cache: true
        prune-cache: false
        version: 0.8.8
        python-version: ${{ matrix.python-version }}
Found uv in tool-cache for 0.8.8
Added /root/.local/bin to the path
Added /opt/hostedtoolcache/uv/0.8.8/x86_64 to the path
Set UV_PYTHON to 3.12
##[add-matcher]/run/act/actions/d0bdefcf7c722ab5e931bbbe5c993190056e688a4e97062d7aaa8f1205a02403/.github/python.json
Set UV_CACHE_DIR to /root/.cache/uv
Successfully installed uv version 0.8.8
Searching files using cache dependency glob: /workspace/Research/Python/**/*requirements*.txt,/workspace/Research/Python/**/*requirements*.in,/workspace/Research/Python/**/*constraints*.txt,/workspace/Research/Python/**/*constraints*.in,/workspace/Research/Python/**/pyproject.toml,/workspace/Research/Python/**/uv.lock
/workspace/Research/Python/pyproject.toml
/workspace/Research/Python/uv.lock
Found 2 files to hash.
Trying to restore uv cache from GitHub Actions cache with key: setup-uv-1-x86_64-unknown-linux-gnu-3.12-1944992fedef2dc52b49cc0a7fd4d148b7822103bf9032ddb497d83ffa35ef39
Cache Size: ~120 MB (126345583 B)
[command]/usr/bin/tar -xf /tmp/dd1aaf22-d897-4efb-b736-15022cee3f9e/cache.tzst -P -C /workspace/Research/Python --use-compress-program unzstd
Cache restored successfully
uv cache restored from GitHub Actions cache with key: setup-uv-1-x86_64-unknown-linux-gnu-3.12-1944992fedef2dc52b49cc0a7fd4d148b7822103bf9032ddb497d83ffa35ef39

Metadata

Metadata

Assignees

No one assigned

    Labels

    non-native-runnerIssues with runners like act or gitea

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions