From 4f250726aa7b8ba72e0353fc06b4216e5c5ebae4 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 22 Oct 2018 13:52:28 -0700 Subject: [PATCH] build: fix the accept binary path in ts-api-guardian error message (#26602) Fixes #26589 PR Close #26602 --- tools/ts-api-guardian/lib/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ts-api-guardian/lib/cli.ts b/tools/ts-api-guardian/lib/cli.ts index ac26ab4242..4a5c8115ca 100644 --- a/tools/ts-api-guardian/lib/cli.ts +++ b/tools/ts-api-guardian/lib/cli.ts @@ -66,7 +66,7 @@ export function startCli() { // Under bazel, give instructions how to use bazel run to accept the golden file. if (!!process.env['BAZEL_TARGET']) { console.error('\n\nAccept the new golden file:'); - console.error(` bazel run ${process.env['BAZEL_TARGET']}.accept`); + console.error(` bazel run ${process.env['BAZEL_TARGET'].replace(/_bin$/, "")}.accept`); } process.exit(1); }