Buck: upgrade to recent version
This version fixes a critical bug [1] that prevents us from simplifying
bucklets intergration. In this version, Buck only allows defining new
rule functions in files included with include_defs, not actually
instantiating rules, so we need to reshuffle some rules.
After this commit [2] "$(macro ...)" syntax is preserved for buck
macros, we need to use a backslash to send commands directly to the
shell: "\$(macro ...)". It turns out this doesn't work yet, shell
backticks seem to work though [3].
[1] https://github.com/facebook/buck/issues/182
[2] d6f3252170
[3] https://github.com/facebook/buck/issues/212
Change-Id: Ie99757bafc626d4ac2c5a75a2983d91b0c4f6d24
This commit is contained in:
committed by
Dave Borowitz
parent
2571776909
commit
7fc13dca82
@@ -80,7 +80,7 @@ def gerrit_plugin(
|
||||
type = 'plugin',
|
||||
visibility = ['PUBLIC']):
|
||||
from multiprocessing import cpu_count
|
||||
mf_cmd = 'v=$(git describe HEAD);'
|
||||
mf_cmd = 'v=`git describe HEAD`;'
|
||||
if manifest_file:
|
||||
mf_src = [manifest_file]
|
||||
mf_cmd += 'sed "s:@VERSION@:$v:g" $SRCS >$OUT'
|
||||
|
||||
Reference in New Issue
Block a user