[PR #3701] [MERGED] Launcher: a Nightly row in Versions reads as its commit #5159

Closed
opened 2026-11-03 05:10:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3701
Author: @Domanffe
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/launcher-nightly-label


📝 Commits (1)

  • 9cbde2b Launcher: a Nightly row in Versions reads as its commit

📊 Changes

2 files changed (+25 additions, -1 deletions)

View changed files

📝 launcher/src/main.rs (+4 -1)
📝 launcher/src/nightly.rs (+21 -0)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

Fixes #3700.

version_tag prints a row's tag with a leading v stripped, which reads right for v0.2.97 and wrong for the only build that ships now: a Nightly row showed the install folder name, nightly-2026-10-29-4baa571.

nightly::label turns that into Nightly · 4baa571, and version_tag uses it when the tag is a Nightly. The date stays where it was: both call sites already print release.date next to the title, so repeating it there would only push the commit out of view. Releases read as before (0.2.97), and a tag with no commit (nightly-2026-10-29) reads Nightly.

Checked with cargo test nightly in launcher/:

test nightly::tests::a_nightly_reads_as_its_commit ... ok
test nightly::tests::a_nightly_installs_under_its_date_and_commit ... ok
test nightly::tests::only_unused_older_nightlies_are_removed ... ok

cargo clippy --all-targets -- -D warnings is clean in launcher/, and cargo fmt --check too.

Not done: no screenshot of the launcher window. The change is one label in a row that the unit test pins, and running the launcher for a capture means driving the GPUI window by hand for a string the test already covers. Say so if you want the picture and I will add it.

The pr_ready block follows as a comment.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3701 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/launcher-nightly-label` --- ### 📝 Commits (1) - [`9cbde2b`](https://github.com/horizon-rust/horizon/commit/9cbde2b525f65d3a19587a38392c943db7e9f7aa) Launcher: a Nightly row in Versions reads as its commit ### 📊 Changes **2 files changed** (+25 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/main.rs` (+4 -1) 📝 `launcher/src/nightly.rs` (+21 -0) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Fixes #3700. `version_tag` prints a row's tag with a leading `v` stripped, which reads right for `v0.2.97` and wrong for the only build that ships now: a Nightly row showed the install folder name, `nightly-2026-10-29-4baa571`. `nightly::label` turns that into `Nightly · 4baa571`, and `version_tag` uses it when the tag is a Nightly. The date stays where it was: both call sites already print `release.date` next to the title, so repeating it there would only push the commit out of view. Releases read as before (`0.2.97`), and a tag with no commit (`nightly-2026-10-29`) reads `Nightly`. **Checked** with `cargo test nightly` in `launcher/`: ``` test nightly::tests::a_nightly_reads_as_its_commit ... ok test nightly::tests::a_nightly_installs_under_its_date_and_commit ... ok test nightly::tests::only_unused_older_nightlies_are_removed ... ok ``` `cargo clippy --all-targets -- -D warnings` is clean in `launcher/`, and `cargo fmt --check` too. Not done: no screenshot of the launcher window. The change is one label in a row that the unit test pins, and running the launcher for a capture means driving the GPUI window by hand for a string the test already covers. Say so if you want the picture and I will add it. The `pr_ready` block follows as a comment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:38 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5159
No description provided.