From d9032666e8333e77f5089742fee9eb0c0cf73db6 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Wed, 31 Jul 2024 17:34:46 +0100 Subject: [PATCH] repo: Make it work externally Signed-off-by: Ryan Northey --- examples.bzl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples.bzl b/examples.bzl index e24728d..4fb77b9 100644 --- a/examples.bzl +++ b/examples.bzl @@ -11,8 +11,10 @@ def envoy_example(name, shared = ":shared_files", common_fun = ":verify-common.s name = "%s_dir" % name, outs = ["%s_dir.tar" % name], cmd = """ - tar chf $@ -C . shared verify-common.sh %s - """ % name, + SHARED_PATHS=$(locations %s) + SHARED=$$(echo $$SHARED_PATHS | cut -d/ -f1) + tar chf $@ -C . $$SHARED $(location %s) %s + """ % (shared, common_fun, name), tools = [ common_fun, shared,