haskell / haskell/cabal

cabal exec not able to find executable by relative path

Open
#4,063 3 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/exec type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

`cabal exec` is not able to find executables in the same directory as the project.

```
$ vim test.c # write a hello world executable
$ cabal sandbox init
$ cabal install # unrelated project
$ gcc -o hello_world test.c
$ ./hello_world
Hello world!
$ cabal exec ./hello_world
cabal: The program './hello_world' is required but it could not be found.
$ cabal exec $(pwd)/hello_world
Hello world!
```

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.