IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/DottedVersion

You can read about the migration, and let us know what you think.

Extensions > API reference > DottedVersion

DottedVersion

A value representing a version with multiple components, separated by periods, such as 1.2.3.4.

Members

compare_to

int DottedVersion.compare_to(other)

Compares based on most signifigant (first) not-matching version component. So, for example, 1.2.3 < 1.2.4

Parameters

Parameter Description
other required
The other dotted version.