PATH isn't updated for local executables in build-tool-depends when build-type is not simple
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**Describe the bug**
The build-tool-depends field allows you to specify local executables that are needed by other steps. This behaviour works as expected when the build type is simple. But changing the build type to configure or custom breaks this behaviour.
Example repo showing the issue: marknsikora/cabal-build-tool-depends-local
**To Reproduce**
Steps to reproduce the behavior:
```
$ git checkout good
$ cabal v2-test
...
Test suite cabal-build-tool-depends-local-test: RUNNING...
Test suite cabal-build-tool-depends-local-test: PASS
...
$ git checkout bad
$ cabal v2-test
...
Test suite cabal-build-tool-depends-local-test: RUNNING...
cabal-build-tool-depends-local-test: cabal-build-tool-depends-local: callProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
Test suite cabal-build-tool-depends-local-test: FAIL
```
**Expected behavior**
Changing to the configure build type should have no effect apart from reading in the buildinfo files. This probably means the autoconf hooks are missing a call to the simple hooks somewhere, maybe preTest.
Contributor guide
Assessment
This issue has not been assessed yet.