bazelbuild / bazelbuild/bazel

The platforms flag should be single-valued

Open
#19,807 10 comments 0 reactions 1 assignee Claimed by @katre View on GitHub
P2 team-Configurability type: feature request
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the feature request:

Right now, the `--platforms` flag accepts multiple values but only the first is actually used.

Instead, the flag should be single-valued and give an error if multiple values are passed.

Further, the flag should actually be `--platform` and uses should be migrated, but that may be harder to manage.

### Which category does this issue belong to?

Configurability

### What underlying problem are you trying to solve with this feature?

Poor decision decisions at the start of the platforms project

### Which operating system are you running Bazel on?

_No response_

### What is the output of `bazel info release`?

_No response_

### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.

_No response_

### What's the output of `git remote get-url origin; git rev-parse master; git rev-parse HEAD` ?

_No response_

### Have you found anything relevant by searching the web?

_No response_

### Any other information, logs, or outputs that you want to share?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.