bazel-contrib / bazel-contrib/bazel-lib

Patch Support For write_source_files

Open
#1,060 1 comment 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Starlark
Stars
182
Forks
134
Avg merge
1d 46m
Merged PRs (30d)
1

Description

It would be nice to have the capability of providing a list of patches to the write_source_files rule. I know you can apply patches at the http_archive / git_archive level, but sometimes you need different patches for each destination.

As a feature request, it would be nice for the `write_source_files` rule to support `patch` and `patch_args` mechanisms, just like the http_archive rule.

Thank you!

Contributor guide

Open the contributing guide

Research direction

Start by locating the write_source_files rule and compare its behavior with the patch and patch_args mechanisms in http_archive and git_archive. Determine how patches should differ for each destination, then verify that per-destination patches and patch arguments work as requested.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.