Open nikolai-cherkezishvili-da opened 4 years ago
Seems to be linked with https://github.com/digital-asset/daml/issues/3135
Not linked to #3135, and not fixed yet.
I have set up a small example of a package chain where package2 depends on package1, and which uses a directory: source: src/
in daml.yaml
. The problem with the missing files is, the resulting package dar
file cannot be used as a dependency of another package.
If package1
is compiled with --incremental=yes
(whether there was an old build or not), the dar
file cannot be used as a dependency. When building package2
with a dependency on the package1
dar, the compiler complains
File: src/Package2File.daml
Hidden: no
Range: 5:0-5:19
Source: typecheck
Severity: DsError
Message:
src/Package2File.daml:5:1: error:
Could not find module ‘Package1File’
There are files missing in the ‘package1-0.0.1000’ package,
try running 'ghc-pkg check'.
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
@jberthold-da why did you close this?
Sorry, my bad, wrong button.
*.hi
files are missing fromdar
file when building with--incremental=yes
With incremental compilation
Without incremental compilation