bazel-contrib / bazel-contrib/bazel-lib

[FR]: Add support for runtime_toolchain_type for jq/yq/...

Open
#747 4 comments 0 reactions 0 assignees View on GitHub
enhancement need: more info
Dominant language
Starlark
Stars
182
Forks
134
Avg merge
1d 46m
Merged PRs (30d)
1

Description

### What is the current behavior?

_No response_

### Describe the feature

The current toolchain only provides the binary for use during the build but no binary for the build output. People already misuse the cfg=exec binary in a cfg=target output, e.g. https://github.com/bazel-contrib/rules_oci/blob/main/oci/private/push.sh.tpl. Providing another runtime_toolchain_type (similar to what rules_java does) can help improve the current situation. Alternatively, we can provide both exec and target binary in the current toolchain and ask users to use the correct binary.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing jq/yq/... toolchain implementation and comparing its exec/target behavior with rules_java's runtime_toolchain_type. Done means the build output can use an appropriate runtime binary without misusing the cfg=exec binary, or the issue's alternative of exposing both binaries is deliberately implemented.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, tooling
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.