@@ -13400,12 +13400,21 @@ async function installTool(tool, version, os) {
1340013400 }
1340113401 switch ( os ) {
1340213402 case 'linux' :
13403- if ( tool === 'ghc' && ( 0 , compare_versions_1 . compareVersions ) ( '8.3' , version ) ) {
13404- // Andreas, 2022-12-09: The following errors out if we are not ubuntu-20.04.
13405- // Atm, I do not know how to check whether we are on ubuntu-20.04.
13406- // So, ignore the error.
13407- // if (!(await aptLibCurses5())) break;
13408- await aptLibNCurses5 ( ) ;
13403+ if ( tool === 'ghc' ) {
13404+ if ( version === 'latest-nightly' ) {
13405+ await exec ( await ghcupBin ( os ) , [
13406+ 'config' ,
13407+ 'add-release-channel' ,
13408+ 'https://ghc.gitlab.haskell.org/ghcup-metadata/ghcup-nightlies-0.0.7.yaml'
13409+ ] ) ;
13410+ }
13411+ else if ( ( 0 , compare_versions_1 . compareVersions ) ( '8.3' , version ) ) {
13412+ // Andreas, 2022-12-09: The following errors out if we are not ubuntu-20.04.
13413+ // Atm, I do not know how to check whether we are on ubuntu-20.04.
13414+ // So, ignore the error.
13415+ // if (!(await aptLibCurses5())) break;
13416+ await aptLibNCurses5 ( ) ;
13417+ }
1340913418 }
1341013419 await ghcup ( tool , version , os ) ;
1341113420 if ( await isInstalled ( tool , version , os ) )
0 commit comments