Skip to content

[rust] Align CLI with Go reference implementation - #1580

Merged
brandur merged 1 commit into
masterfrom
codex/rust-cli-migration-output
Nov 4, 2026
Merged

brandur merged 1 commit into
masterfrom
codex/rust-cli-migration-output

Conversation

@brandur

@brandur brandur commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

This came up in #506, but it turns out that Rust's CLI behaves different
with respect to migration output compared to the reference implementation
in Go.

Here, tighten that up so that:

  • migrate-list shows all versions and names, marking the latest
    applied with *.
  • Progress output follows Go’s format; successful validation is silent.
  • SQL output requires --show-sql, including during dry runs.

@brandur
brandur force-pushed the codex/rust-cli-migration-output branch from ca44d02 to bdb9b35 Compare November 4, 2026 14:21
Comment thread rust/CHANGELOG.md Outdated

### Fixed

- Align migration CLI output with Go: `migrate-list` shows every bundled version and name, marking the latest applied version with `*`; migration progress uses the Go format and reports when nothing remains to apply; successful validation is silent. SQL output now requires `--show-sql`, including with `--dry-run`. [PR #XXX](https://github.com/riverqueue/river/pull/XXX).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Placeholder XXX

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah damnit. Thanks.

This came up in #506, but it turns out that Rust's CLI behaves different
with respect to migration output compared to the reference implementation
in Go.

Here, tighten that up so that:

* `migrate-list` shows all versions and names, marking the latest
  applied with `*`.
* Progress output follows Go’s format; successful validation is silent.
* SQL output requires `--show-sql`, including during dry runs.
@brandur
brandur force-pushed the codex/rust-cli-migration-output branch from bdb9b35 to 6a2fa85 Compare November 4, 2026 14:36
@brandur
brandur merged commit a4de726 into master Nov 4, 2026
35 checks passed
@brandur
brandur deleted the codex/rust-cli-migration-output branch November 4, 2026 15:38
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.

2 participants