From b6ec98bdfebfcdea3bbaf27f369abf07a79ca2ac Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Thu, 24 Jul 2025 17:43:54 +0000 Subject: [PATCH] fix(bazel/spec-bundling): allow for non init suffixed files to be used as bootstrap files Allow for files that are not suffixed with init to be used as bootstrap files --- bazel/spec-bundling/spec-entrypoint.bzl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bazel/spec-bundling/spec-entrypoint.bzl b/bazel/spec-bundling/spec-entrypoint.bzl index f8ea56a42..f4538fd16 100644 --- a/bazel/spec-bundling/spec-entrypoint.bzl +++ b/bazel/spec-bundling/spec-entrypoint.bzl @@ -71,7 +71,10 @@ def _spec_entrypoint_impl(ctx): # Note: `to_list()` is an expensive operation but we need to do this for every # dependency here in order to be able to filter out spec files from depsets. direct_bootstrap_files = depset(transitive = bootstrap_direct_deps).to_list() - bootstrap_files = _filter_files(direct_bootstrap_files, ["init"]) + + # Filter to only js and mjs files, we can't always define what the name of the files + # needed for bootstrapping are so we rely on the user to provide the exact list. + bootstrap_files = _filter_files(direct_bootstrap_files, [""]) ctx.actions.write( output = output,