| 'commit-message-length-validator', |
| # buck audit parses and resolves all deps even if not reachable |
| # from the root(s) passed to audit. Filter dependencies to only |
| # the ones that currently exist to allow buck to parse cleanly. |
| # TODO(sop): buck should more lazily resolve deps |
| if path.exists(path.join(BASE, p, 'BUCK')): |
| HAVE, NEED = filter(CORE) |
| ';'.join(['echo >&2 plugins/'+n+' is required.' for n in NEED]) + |
| (';echo >&2;exit 1;' if NEED else '') + |
| 'mkdir -p $TMP/WEB-INF/plugins;' + |
| ' '.join(['$(location //%s/%s:%s)' % (BASE, n, n) for n in HAVE]) + |
| ';do ln -s $s $TMP/WEB-INF/plugins;done;' + |
| visibility = ['//:release'], |