Fix HEAD and/or support GHC nightlies

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
haskell, typescript
Domain
ci-cd

Research direction

Start at src/installer.ts#L355 and inspect how the action resolves ghc_version: head. Compare the existing artifact URL with the proposed GHCup nightly channel and verify that the chosen approach can install the requested GHC version in the action; done means head or latest-nightly setup no longer fails with a 404.

Written by the indexing model from the issue text.

Description

Using ghc_version: head breaks; this URL is a 404:

https://github.com/haskell-actions/setup/blob/cc2e454616658fccc317c3cbd7a7f2c45c1d706c/src/installer.ts#L355

It would be great for one of the following to occur:

  1. Fix the URL (e.g. https://gitlab.haskell.org/ghc/ghc/-/jobs/artifacts/master/raw/ghc-x86_64-linux-fedora33-release.tar.xz?job=x86_64-linux-fedora33-release)
  2. Enable GHCup's nightly feature: https://discourse.haskell.org/t/ann-ghcup-0-1-19-3-released/6749

It seems like all that's needed for (2) is to upgrade GHCup installed by this action to 0.1.19.3 + set

ghc-version: latest-nightly
ghcup-release-channel: https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml
Dominant language
TypeScript
Stars
91
Forks
21
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from haskell-actions/setup

All issues in haskell-actions/setup

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.