Skip to content

Add rb version - #7

Merged
hsbt merged 2 commits into
masterfrom
claude/rb-version-command
Jul 28, 2026
Merged

Add rb version#7
hsbt merged 2 commits into
masterfrom
claude/rb-version-command

Conversation

@hsbt

@hsbt hsbt commented Jul 28, 2026

Copy link
Copy Markdown
Member

Upgrading rb.exe left no way to tell which build is installed short of reading the file timestamp. rb version reports it, in cargo's shape.

$ rb version
rbmanager 0.1.0 (9a1b2c3 2026-07-28)

The version alone does not separate two builds of the same tag, so the commit and date come along. The version is read from the assembly rather than kept as a literal, because release.yml stamps it from the tag with -p:Version=<tag>. The commit and date are stamped by an MSBuild target in rbmanager.csproj, riding along as SourceRevisionId and an AssemblyMetadata entry. A build with no git checkout drops the parenthetical and prints the version alone. The publish suite pins all of this against the NativeAOT binary, which is the one place the attribute lookup could come back empty.

Only rb version is added, no --version or -v aliases.

hsbt and others added 2 commits July 28, 2026 20:43
An upgraded rb.exe was otherwise only distinguishable by its file timestamp. The line follows cargo's shape, rbmanager 0.1.0 (9a1b2c3 2026-07-28), with the version coming from the release tag and the commit and date stamped in at build time, so two builds of the same tag stay tellable apart.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The publish case is the one that carries weight. The version is read from assembly attributes, and NativeAOT is where that lookup could come back empty while the CoreCLR build stays fine.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@hsbt
hsbt merged commit c574f44 into master Jul 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant