haskell / haskell/cabal

cabal checks PATH before extra-prog-path

Open
#6,304 2 comments 1 reaction 0 assignees View on GitHub
cabal-install: cmd/build platform: windows type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
When you have a program that's both on your `PATH` and in `extra-prog-path` you can't steer cabal to which one you want locally without modifying your `PATH`.

This is an issue with `pkg-config` on Windows because by default global installs of `msys2` (such as on appveyor) put the wrong version on your path.

```
$ cabal v2-build ...
```

**Expected behavior**
I expect cabal to use the paths I manually specified in `extra-prog-path` before the ones in `PATH`. This allows the use more control over which program they wanted used.

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.