Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 1721ceb

Browse files
committed
Fix #202: choco install ghc --ignore-dependencies
Passing `--ignore-dependencies` prevents choco from automatically installing the latest cabal, which would conflict with a subsequent explicit installation of cabal.
1 parent 9a67e86 commit 1721ceb

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

setup/dist/index.js

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

setup/lib/installer.js

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

setup/src/installer.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,16 @@ async function choco(tool: Tool, version: string): Promise<void> {
273273
tool,
274274
'--version',
275275
revision,
276-
'-m',
276+
// Andreas, 2023-03-13:
277+
// Removing the following (deprecated) option confuses getChocoPath, so we keep it for now.
278+
// TODO: remove this option and update ghc and cabal locations in getChocoPath.
279+
'--allow-multiple-versions',
280+
// Andreas, 2023-03-13, issue #202:
281+
// When installing GHC, skip automatic cabal installation.
282+
tool == 'ghc' ? '--ignore-dependencies' : '',
283+
// Verbosity options:
277284
'--no-progress',
278-
core.isDebug() ? '-d' : '-r'
285+
core.isDebug() ? '--debug' : '--limit-output'
279286
];
280287
if ((await exec('powershell', args)) !== 0)
281288
await exec('powershell', [...args, '--pre']);

0 commit comments

Comments
 (0)