From 92bb26a847b59ff7c48e57b077680d002a97e308 Mon Sep 17 00:00:00 2001 From: Sam Gammon Date: Sun, 3 Sep 2023 16:17:03 -0700 Subject: [PATCH] fix: typo in `gu` post-install actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix: `startsWith` should be `startswith` - test: update `components-ce` test to include component usage Thank you to @mantasindrasius! Co-authored-by: Mantas IndraĊĦius Signed-off-by: Sam Gammon --- internal/graalvm_bindist.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/graalvm_bindist.bzl b/internal/graalvm_bindist.bzl index 1f229609..1cfe48e2 100644 --- a/internal/graalvm_bindist.bzl +++ b/internal/graalvm_bindist.bzl @@ -110,7 +110,7 @@ def _graal_postinstall_actions(ctx, os): cmd = _graal_updater_path(ctx, os) if ctx.attr.setup_actions and len(ctx.attr.setup_actions) > 0: for action in ctx.attr.setup_actions: - if not action.startsWith("gu "): + if not action.startswith("gu "): fail("GraalVM setup action did not start with 'gu'. Please only run GraalVM updater commands.") action_cmd = action.replace("gu ", "").split(" ")