bazelbuild / bazelbuild/bazel-skylib

Expand make variables in write_file content and expand_template substitutions

Open
#442 6 comments 1 reaction 0 assignees View on GitHub
good first issue P3 type: feature request
Dominant language
Starlark
Stars
444
Forks
202
PR merge metrics
No merged PRs in 30d

Description

If a user wants make variable substitution, they need to either write their own versions of these rules or else fall back to genrule.

I assume a boolean attribute would need to be added to toggle this behavior as it wouldn't be backwards-compatible.

Contributor guide

Open the contributing guide

Research direction

Start by locating the write_file rule and the expand_template substitutions described in the issue, then read their current handling of content and substitutions. Determine how make-variable expansion should be enabled without changing existing behavior; done means both requested locations support the opt-in behavior and the backward-compatibility choice is documented by the implementation or tests.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.