G-d willing
Hello,
Normally in a Daml project, we have the daml.yaml file which has the source field that indicates where all files are stored.
For example
sdk-version: 2.0.0
name: testProject
source: damlDir
So, when I execute the “daml build” command in the shell, Daml goes into the source folder (damlDir in my case) and uses the files from there in order to create the DAR file.
However, I noticed a different approach where instead of having a “damlDir” folder, there is a damlDir file that its content is simply one line of text: “…/…/someOtherFolder/damlDir”.
But, when I execute the command in Windows 10, I am getting an error message:
File: daml
Hidden: no
Range: 1:1-1:7
Source: parser
Severity: DsError
Message: daml:1:1: error: parse error on input ../../
ERROR: Creation of DAR file failed.
damlc: ../someOtherFolder/.daml/dist/someOtherFolder-0.0.1.dar: openBinaryFile: does not exist (No such file or directory)
However, when running this command on a Linux machine, there is no problem. Build finishes okay and I am getting the DAR file. I do prefer to work on Windows, cause otherwise, I will need to continue working on a VM - which is less comfortable for me.
Is there a way to fix this?