4

我正在为 Scala 项目开发 giter8 模板。所有模板都按预期运行。但是,今天我遇到了错误:

Exiting due to error in the template: /var/folders/zg/dspycv2d6sqc92801kmqy3yw0000gn/T/giter8-75157374435862
relative: $name__norm$/src/main/resources/prod-application.conf, toPath: /Users/***/., An unexpected error occurred while processing the template. Check that all literal '$' are properly escaped with '\$'

提到的文件如下:

akka {
  discovery {
    method = akka-dns
    kubernetes-api {
      pod-namespace = \${SERVICE_NAMESPACE}
      pod-label-selector = "app=$name;format="norm"$"
      pod-port-name = management
    }

我尝试了不同的 $ 转义选项。我什至删除了所有文本并尝试构建模板,但指向同一个文件时仍然收到相同的错误。

有谁知道解决这个问题的可能方法?

4

0 回答 0