Support including targets with same local name in //:all The //:all target used only local name of each including target. It was impossible to include both targets like //A:src and //B:src as the local names used for symlinking would be "src" for both of them. Using qualified names like: A-src and B-src, resolves the issue. Change-Id: Iedcb6dd0666a1ce55ecc24a99578e37c2739e420
diff --git a/BUCK b/BUCK index 7fd0f96..b7015cd 100644 --- a/BUCK +++ b/BUCK
@@ -30,10 +30,11 @@ a = set() for d in DEPS: n,t = d.split(':') - a.add(t) - out = "%s.jar" % t + q = "%s-%s" % (n[2:], t) + a.add(q) + out = "%s.jar" % q genrule( - name = t, + name = q, cmd = 'ln -s $(location %s) $OUT' % d, out = out, )