1

我想在我的属性中.buckconfig有一个自定义字符串列表。从文档中,我了解到这是受支持的。

这是我的.buckconfig

[custom]
  key = a b c 

这是我的BUCK文件(用于测试):

print read_config('custom', 'key')
# etc... 

最终我想用它read_config('custom', 'key')来生成deps一个目标列表。

但是当我构建时,我得到了这个错误:

$ buck run :app
Warning raised by BUCK file parser: a b c

这里有什么错误?我该如何解决?

4

1 回答 1

1

无论好坏,Buck 将构建文件解析为 python(使用 python 解释器)。因为您使用print了 ,所以它弄乱了输出(BSER 或 JSON),因此无法解析构建文件。

于 2017-03-02T23:43:29.460 回答