From 609827c84c3b971b6825b9753c390ee60248629c Mon Sep 17 00:00:00 2001 From: Brandon Duffany Date: Fri, 21 Apr 2023 22:27:59 -0400 Subject: [PATCH] Simplify debug mode --- rules.bzl | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/rules.bzl b/rules.bzl index d858241..e6f5a78 100644 --- a/rules.bzl +++ b/rules.bzl @@ -74,23 +74,22 @@ def _protoc_gen_protobufjs_impl(ctx): executable = ctx.executable._protoc, arguments = args, - # DEBUG: - # env = {"DEBUG": "1"}, + # Debug: + # tools = [ctx.executable._protoc, ctx.executable._protoc_gen_protobufjs], # executable = "/bin/bash", # arguments = ["-c", """ - # : "${DEBUG:=0}" - # ((DEBUG)) && set -x - # ((DEBUG)) && ( - # """ + ctx.executable._protoc.path + """ --version - # pwd - # find . | grep -P '\\.proto(.bin)?$' - # ) >&2 - # """ + ctx.executable._protoc.path + " " + " ".join(args) + """ - # ((DEBUG)) && ( - # echo "AFTER running:" - # find | grep -P '\\.ts$' - # ) >&2 + # set -x + # ( + # """ + ctx.executable._protoc.path + """ --version + # pwd + # find . | grep -P '\\.proto(.bin)?$' + # ) >&2 + # """ + ctx.executable._protoc.path + " " + " ".join(args) + """ + # ( + # echo "AFTER running:" + # find | grep -P '\\.ts$' + # ) >&2 # """], ) return [