Skip to content

Add rb list --remote and answer --version - #12

Merged
hsbt merged 5 commits into
masterfrom
version-flags-and-remote-list
Sep 10, 2026
Merged

Add rb list --remote and answer --version#12
hsbt merged 5 commits into
masterfrom
version-flags-and-remote-list

Conversation

@hsbt

@hsbt hsbt commented Sep 10, 2026

Copy link
Copy Markdown
Member

rb --version and rb -V fell through to usage and exited 2, so probing an unknown binary looked like a broken one rather than an old one. Seeing what the index offers meant fetching and parsing index.json by hand, which makes it easy to miss that rb install ruby-dev exists at all.

Both flags now print the same line as rb version. rb list --remote prints the builds the index offers for this platform, newest first, with the tags install accepts. The unknown-schema error now names the running build and the releases page, which is the only signal the feed has for telling an old rb that it is old.

$ rb list --remote
ruby-4.1.0dev-20260909-9bfe1fcdb3-x64-mswin64_140  dev  4.1-dev, 4.1-dev-20260909, 4.1.0dev-20260909-9bfe1fcdb3, ruby-dev
$ rb install ruby-dev

The index currently carries only dev snapshots, so the README's rb install 4.0.5 example does not resolve yet. That is ruby/actions' side.

Generated with Claude Code

hsbt and others added 5 commits September 10, 2026 09:31
Probing an unknown rb with --version is how a caller identifies the
build it got, and answering that with usage and a non-zero exit reads
as a broken binary rather than as an old one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The binary index is the only way to learn what can be installed, and so
far a caller had to fetch and parse index.json to see it. The output is
the counterpart of `rb list`: name, channel, and the tags `install`
takes, newest first.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The schema number is the only channel the feed has for telling an old
rb that it is old, and "upgrade rb" left the reader to work out which
rb had answered and where a newer one comes from.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@hsbt
hsbt merged commit a17ad0b into master Sep 10, 2026
3 checks passed
@hsbt
hsbt deleted the version-flags-and-remote-list branch September 10, 2026 05:50
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