前模型样本中引用的“da”工具是什么?

What's the `da` tool referenced all over the ex-models samples?

我一直在关注 daml documentation and managed to get the SDK 0.13.14 installed according to the documentation tutorials. However, when I check out the ex-models 示例,它们都引用了 da 工具,例如:

da compile

da run damlc -- test daml/CrowdFunding.daml

但路径中没有任何 da 可执行文件,只有 daml.

UPDATE 我在 crowd-funding 样本上使用 daml build 时出现以下错误:

skywalker@Zeus:~/code/ex-models/crowd-funding$ daml build
daml build: Not in project.
daml: An unknown error has occured
  context: Running build command.
  details: Received ExitFailure 1 when running
Raw command: /home/skywalker/.daml/sdk/0.13.14/damlc/damlc build --project-check

da 是最近才停用的遗留工具。我们现在更新了示例以使用新的 daml 实用程序。

要使用的新命令是:

  • daml build编译工程
  • daml test --color到运行所有场景

我现在已经在每个项目中包含了 makefile 以 运行 这些方便。

请注意,您在 daml build 中看到的错误是因为项目需要升级才能使用新工具。以前,da 工具使用 da.yaml 进行项目配置,新的 daml 工具使用 daml.yaml.

您可以使用 daml init 将旧项目升级为新格式(即将 da.yaml 转换为略有不同的 daml.yaml)。