[PR #3378] [MERGED] launcher: fix server delete on Windows and a CRLF test #4944

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3378
Author: @ludovic111
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @ludovic111

Base: main ← Head: launcher-windows-tests


📝 Commits (1)

  • 9cdfc5b launcher: two Windows-only failures (server delete, a test's line ends)

📊 Changes

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

View changed files

📝 launcher/src/backend.rs (+2 -1)
📝 launcher/src/servers.rs (+5 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Both fail on main's Windows launcher tests (seen in #3361's build windows, run 40760771689), which the next launcher release also runs:

  • Deleting a server on Windows (#2811): trash_stopped_server moves the folder while holding .horizon/lock open, and Windows refuses to move a folder with an open file in it ("Access is denied"), so the Delete button could never work there. On Windows the lock is now released right before the move. That stays safe: a supervisor that starts in between opens the lock again, and the move then fails instead of taking a live server. Other systems keep holding it.
  • mojang_downloads_only_for_an_owner (#3335) cut function bodies at "\n}\n", which a Windows checkout writes with CRLF: the sources are normalised to LF first.

CI's Windows job is the check (no Windows machine here yet).

🤖 Generated with Claude Code


🔄 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/3378 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `launcher-windows-tests` --- ### 📝 Commits (1) - [`9cdfc5b`](https://github.com/horizon-rust/horizon/commit/9cdfc5bd44d7a51db3e033fc998f22436b74b264) launcher: two Windows-only failures (server delete, a test's line ends) ### 📊 Changes **2 files changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/backend.rs` (+2 -1) 📝 `launcher/src/servers.rs` (+5 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Both fail on main's Windows launcher tests (seen in #3361's `build windows`, run 40760771689), which the next launcher release also runs: - **Deleting a server on Windows** (#2811): `trash_stopped_server` moves the folder while holding `.horizon/lock` open, and Windows refuses to move a folder with an open file in it ("Access is denied"), so the Delete button could never work there. On Windows the lock is now released right before the move. That stays safe: a supervisor that starts in between opens the lock again, and the move then fails instead of taking a live server. Other systems keep holding it. - **`mojang_downloads_only_for_an_owner`** (#3335) cut function bodies at `"\n}\n"`, which a Windows checkout writes with CRLF: the sources are normalised to LF first. CI's Windows job is the check (no Windows machine here yet). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:09:05 +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#4944
No description provided.