bazel-contrib / bazel-contrib/bazel-lib

Usages of platform_transition_binary prevent usage of $(location)

Open
#1,003 1 comment 0 reactions 0 assignees View on GitHub
need: discussion
Dominant language
Starlark
Stars
182
Forks
134
Avg merge
1d 46m
Merged PRs (30d)
1

Description

Because of https://github.com/bazel-contrib/bazel-lib/blame/1e953e4764c01bd6743cc85ae4c15bf9edb05f82/lib/transitions.bzl#L82 the output returns multiple files preventing the use of the $(location) macros: `$(location) expression expands to more than one file`

Contributor guide

Open the contributing guide

Research direction

Start by inspecting lib/transitions.bzl at the referenced line and the behavior of platform_transition_binary around output files. Reproduce the $(location) expansion failure with a focused Bazel example, then verify that the relevant output can be used without expanding to multiple files.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.