git clone https://github.com/freedomhero/aaa
cd aaa
docker run -it --rm -v $(pwd):/workspace -w /workspace terrorjack/asterius
ahc-cabal new-update
ahc-cabal build
Expected behavior
Building success was expected as the same as running cabal build, but got error log like this:
Resolving dependencies...
Build profile: -w ghc-8.8.4 -O1
In order, the following will be built (use -v for more details):
- common-0.1.0.0 (lib) (first run)
- aaa-0.1.0.0 (lib) (first run)
- aaa-0.1.0.0 (exe:aaa) (first run)
Configuring library for common-0.1.0.0..
Preprocessing library for common-0.1.0.0..
Building library for common-0.1.0.0..
<command line>: cannot satisfy -package-id base
(use -v for more information)
cabal: Failed to build common-0.1.0.0 (which is required by exe:aaa from
aaa-0.1.0.0).
ahc-cabal: callProcess: cabal "build" (exit 1): failed
Environment
OS name + version: MacOS 12.5.1
Version of the code: lastest docker image from docker pull terrorjack/asterius
Describe the bug Building error was reported when trying to use on a simple multi-packges cabal project.
The project has two pakcages:
common
: a library package;aaa
: an exeutable package which depends oncommon
;With structure like this:
common/common.cabal
aaa.cabal
:cabal.project
:To Reproduce Use code from this repo and the recommanded docker image.
Expected behavior Building success was expected as the same as running
cabal build
, but got error log like this:Environment
docker pull terrorjack/asterius