Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup-dhall fails with Cannot read properties of undefined (reading 'browser_download_url') #8

Open
TristanCacqueray opened this issue Jan 8, 2024 · 2 comments

Comments

@TristanCacqueray
Copy link

It seems like the action is broken by failing with:

Run dhall-lang/setup-dhall@v4
  with:
    version: latest
Fetching dhall releases from https://api.github.com/repos/dhall-lang/dhall-haskell/releases/latest
/home/runner/work/_actions/dhall-lang/setup-dhall/v4/src/action.js:61
    core: coreRelease.browser_download_url,
                      ^

TypeError: Cannot read properties of undefined (reading 'browser_download_url')
    at fetchReleases (/home/runner/work/_actions/dhall-lang/setup-dhall/v4/src/action.js:61:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async run (/home/runner/work/_actions/dhall-lang/setup-dhall/v4/src/action.js:104:16)

Example run: https://github.com/change-metrics/demo-node-config/actions/runs/7453463971/job/20278886176?pr=8

@thoughtpolice
Copy link

For anyone running into this, the problem is that Dhall 1.42.1 has no release assets, so the attempt to download the assets in the action fails. You can fix this by specifying:

      - uses: dhall-lang/setup-dhall@v4
        with:
          version: '1.42.0'

to work around it

@craig-day
Copy link
Collaborator

Thanks for the workaround @thoughtpolice, looks like this is blocked until dhall-lang/dhall-haskell#2564 is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants