haskell / haskell/cabal

PATH isn't updated for local executables in build-tool-depends when build-type is not simple

Open
#7,239 1 comment 0 reactions 0 assignees View on GitHub
cabal-install: other Cabal: stanza/custom-setup
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

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.