.buckconfig 中的自定义列表?
Custom list in .buckconfig?
我想在我的 .buckconfig
中有一个 属性,它是一个自定义的字符串列表。从the docs,我了解到这是支持的。
这是我的.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
这里有什么错误?我该如何解决?
无论好坏,巴克解析build file as python (with the python interpreter). Because you used print
, it's messing up that output (either BSER or JSON) so the build file无法解析
我想在我的 .buckconfig
中有一个 属性,它是一个自定义的字符串列表。从the docs,我了解到这是支持的。
这是我的.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
这里有什么错误?我该如何解决?
无论好坏,巴克解析build file as python (with the python interpreter). Because you used print
, it's messing up that output (either BSER or JSON) so the build file无法解析