haskell / haskell/cabal

Why does "cabal info" require ghc?

Open
#5,838 1 comment 0 reactions 0 assignees View on GitHub
cabal-install: cmd/info compiler: ghcjs type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

My CI script uses `cabal info` command and it fails like this:

```
cutlass:/vol/hosts/cueball/workspace/packages/streamly  (ghcjs2)$ cabal info .
cabal: The program 'ghc' version >=7.0.1 is required but it could not be
found.
```

I am running the script for `ghcjs` build and I have ghcjs installed but I do not need `ghc` for the build. Why is `ghc` required for this command to work?

```
cutlass:/vol/hosts/cueball/workspace/packages/streamly  (ghcjs2)$ cabal --version
cabal-install version 2.4.0.0
compiled using version 2.4.0.1 of the Cabal library
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `cabal info .` with cabal-install 2.4.0.0 in an environment with ghcjs but no ghc. Trace the command's compiler check and determine whether requiring ghc is expected; done means the behavior is explained and any needed change is covered by an appropriate regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.