Decide whether to eliminate the prelude_bazel file #11946
Labels
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-Starlark-Integration
Issues involving Bazel's integration with Starlark, excluding builtin symbols
type: process
(See also previous discussion in #1674 and #3835.)
Separate from the issue of how the prelude file is technically loaded (#11940), and whether it should be restricted to only contain
load()
statements, we need to decide whether we want to eventually eliminate it altogether. That is, we need to decide if it's a good idea to allow users to customize the set of predeclared symbols in their BUILD files.I recently learned that my strongest objection to the prelude doesn't apply anymore: I was worried about the prelude file leading to repos not being composable, but it turns out that so was everyone else, so now the prelude only applies within the repo where it's defined (#3991).
So the remaining arguments against the prelude are:
load()
dependencies.The argument in favor of keeping it is that it's convenient, and allows you to put Starlark rules on the same footing as native rules in terms of their implicit availability in the BUILD environment.
The text was updated successfully, but these errors were encountered: