haskell / haskell/cabal

qAddDependentFile is broken with new-install

Open
#5,786 4 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/install cabal-install: v2-build system documentation re: extra-source-files type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

minimal reproducible project https://github.com/hasufell/new-install-fail

new-install:
```
$ cabal new-install -j1 exe:new-install-fail
Wrote tarball sdist to
/home/maerwald/git/new-install-fail/dist-newstyle/sdist/new-install-fail-0.1.0.0.tar.gz
Resolving dependencies...
Build profile: -w ghc-8.6.2 -O1
In order, the following will be built (use -v for more details):
- new-install-fail-0.1.0.0 (exe:new-install-fail) (requires build)
Configuring executable 'new-install-fail' for new-install-fail-0.1.0.0..
Preprocessing executable 'new-install-fail' for new-install-fail-0.1.0.0..
Building executable 'new-install-fail' for new-install-fail-0.1.0.0..
[1 of 1] Compiling Main ( src/Main.hs, dist/build/new-install-fail/new-install-fail-tmp/Main.o )

: error:
resources/foo.md: openBinaryFile: does not exist (No such file or directory)
Warning: Some package(s) failed to build. Try rerunning with -j1 if you can't
see the error.
```

new-build:
```
$ cabal new-build -j1 exe:new-install-fail
Resolving dependencies...
Build profile: -w ghc-8.6.2 -O1
In order, the following will be built (use -v for more details):
- new-install-fail-0.1.0.0 (exe:new-install-fail) (first run)
Configuring executable 'new-install-fail' for new-install-fail-0.1.0.0..
Preprocessing executable 'new-install-fail' for new-install-fail-0.1.0.0..
Building executable 'new-install-fail' for new-install-fail-0.1.0.0..
[1 of 1] Compiling Main ( src/Main.hs, /home/maerwald/git/new-install-fail/dist-newstyle/build/x86_64-linux/ghc-8.6.2/new-install-fail-0.1.0.0/x/new-install-fail/build/new-install-fail/new-install-fail-tmp/Main.o )
Linking /home/maerwald/git/new-install-fail/dist-newstyle/build/x86_64-linux/ghc-8.6.2/new-install-fail-0.1.0.0/x/new-install-fail/build/new-install-fail/new-install-fail ...
```

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.