build-tool-depends not in PATH for `build-type: configure` packages
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**Describe the bug**
`build-tool-depends` executables are not included in `PATH` when running executable/testsuite components of packages with `build-type: configure`.
**To Reproduce**
Reproducer available [here](https://gitlab.haskell.org/bgamari/build-tool-repro).
```
$ git clone https://gitlab.haskell.org/bgamari/build-tool-repro
$ cd build-tool-repro
$ cabal test
...
Running 1 test suites...
Test suite build-tool-repro: RUNNING...
build-tool-repro: build-tool-repro-child: callProcess: posix_spawnp: does not exist (No such file or directory)
Test suite build-tool-repro: FAIL
Test suite logged to:
/mnt/data/exp/haskell-packages/process/hi/dist-newstyle/build/x86_64-linux/ghc-9.4.8/build-tool-repro-0.1.0.0/test/build-tool-repro-0.1.0.0-build-tool-repro.log
0 of 1 test suites (0 of 1 test cases) passed.
Error: cabal: Tests failed for build-tool-repro-0.1.0.0.
```
**Expected behavior**
The test passes.
**System information**
- Linux at very least
- `cabal-install 3.10.2.1`
Contributor guide
Assessment
This issue has not been assessed yet.