Repository navigation
Add version normalization and configurable suffix rendering - #78
Merged
Merged
Conversation
Signed-off-by: helly25 <6420169+helly25@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
versions.normalize_tupleandversions.normalize_stringfor collecting interleaved version suffixes and rendering them with configurable separators. Shared-prefix rendering preserves original encounter order:123+a.b-c.d+e.f-g.hbecomes123#a.b.c.d.e.f.g.hwithprefix="#".AG;DR
.,-, and+; sequences preserve existing component boundaries, spelling, and types.-, then+, preserving encounter order within each group. String rendering accepts a literal separator,Nonefor group markers, or a dict specifying distinct-/+separators.prefixmerges suffix groups before reordering. A separator dict combined with a shared prefix fails as ambiguous. Release components always render with dots.with_modeAPIs. They do not change parsing or claim standards validation; docs distinguish string tokenization from parsed identifier boundaries and explain empty/malformed input, custom output, and spelling preservation._version_stringwithnormalize_stringand temporarily pins this PR's source. Its 43 Bzlmod tests, 41 WORKSPACE tests, Trunk checks, and three integration-module graphs pass. Merge this bzl change and publish 0.8.0 before removing the consumer overrides. The bzl release remains on hold.