haskell / haskell/cabal

cabal commands show git output

Open
#8,870 2 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/list-bin cabal-install: source-repository-package can-workaround type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
Running some cabal commands shows the git output when `source-repository-package` stanzas are present. This is particularly bothersome when doing

```bash
MY_EXE="$(cabal list-bin my-exe)"
```

which captures git output in `MY_EXE`. At the very least, the git output should be redirected into stderr.

Possibly new behavior with 3.10.

**To Reproduce**
Steps to reproduce the behavior:

1. Add `source-repository-package` to `cabal.project`
2. `rm -rf dist-newstyle`
3. `EXE="$(cabal list-bin some-exe)"`
4. `echo $EXE` shows `HEAD is now at ...`

**Expected behavior**
git output should be in stderr

**System information**
- Operating system
- `cabal`, `ghc` versions

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.