bazelbuild/bazel

[bazel.build] /rules/language contains outdated information regarding ints, floats, and sets

Open

#27,257 建立於 2025年10月13日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Java (4,465 fork)batch import
P2help wantedteam-Documentationteam-Starlark-Integrationtype: documentation (cleanup)

倉庫指標

Star
 (25,384 star)
PR 合併指標
 (平均合併 22天 20小時) (30 天內合併 77 個 PR)

描述

Page link:

https://bazel.build/rules/language

Problem description (include actual vs expected text, if applicable):

This page needs someone to read through and make it up-to-date with https://starlark-lang.org/spec.html.

Integers

Bazel says:

Int type is limited to 32-bit signed integers. Overflows will throw an error.

Starlark says:

Integers may be positive or negative, and arbitrarily large

Floats

Bazel says:

The following Python features are not supported:

  • float and set types.

Starlark says:

The Starlark floating-point data type represents an IEEE 754 double-precision floating-point number. Its type is "float".

Sets

Bazel says

The following Python features are not supported:

  • float and set types

Starlark says:

A set is a mutable, iterable collection of unique values - the set's elements. The type of a set is "set".

If Bazel does genuinely not support these features, then it should be made obvious that this is a Bazel-specific issue. Otherwise the information should be removed or corrected.

Where do you see this issue? (include link to specific section of the page, if applicable)

https://bazel.build/rules/language

Any other information you'd like to share?

No.

貢獻者指南