You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
core.info(`Attempting to install ${toolName}${v} using apt-get`);
11256
11270
// Ignore the return code so we can fall back to ghcup
11257
-
awaitexec_1.exec(`sudo -- sh -c "apt-get -y install ${toolName}-${v}"`,undefined,{
11258
-
ignoreReturnCode: true
11259
-
});
11271
+
awaitexec(`sudo -- sh -c "apt-get -y install ${toolName}-${v}"`);
11260
11272
}
11261
11273
asyncfunctionchoco(tool,version){
11262
11274
core.info(`Attempting to install ${tool}${version} using chocolatey`);
11263
11275
// Choco tries to invoke `add-path` command on earlier versions of ghc, which has been deprecated and fails the step, so disable command execution during this.
// Manually add the path because it won't happen until the end of the step normally
11303
-
constpathArray=version.split('.');
11304
-
constpathVersion=pathArray.length>3
11305
-
? pathArray.slice(0,pathArray.length-1).join('.')
11306
-
: pathArray.join('.');
11307
-
constchocoPath=path_1.join(`${process.env.ChocolateyInstall}`,'lib',`${tool}.${version}`,'tools',tool==='ghc' ? `${tool}-${pathVersion}` : `${tool}-${version}`,// choco trims the ghc version here
11309
+
// If chocolatey has a patch release for GHC, 'version' will be a.b.c.d
11310
+
// but GHC's version is still a.b.c and the chocolatey path contains both
11311
+
// (This is only valid for GHC. cabal-install has 4-segment versions)
constchocoPath=path_1.join(`${process.env.ChocolateyInstall}`,'lib',`${tool}.${version}`,'tools',tool==='ghc' ? `${tool}-${ghcVersion}` : `${tool}-${version}`,// choco trims the ghc version here
core.info(`Attempting to install ${tool}${version} using chocolatey`);
165
185
// Choco tries to invoke `add-path` command on earlier versions of ghc, which has been deprecated and fails the step, so disable command execution during this.
0 commit comments