[PR #3076] [MERGED] Port publish: a body names the diff store with Posix separators #4785

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

📋 Pull Request Information

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

Base: main ← Head: fix/port-publish-posix-path


📝 Commits (2)

  • b08e04c Port publish: a body names the diff store with Posix separators
  • 6a06853 Merge remote-tracking branch 'origin/main' into upd/3076

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 tools/port_publish.py (+2 -1)

📄 Description

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

publish_body names the diff store with str(store_path), which keeps the
host's separators. A Windows run therefore wrote

The full diff stays on the maintainer's machine (`~\code\horizon-parity\versions\diff-26.3-26.4`)

into the body while every other line of that body is host-independent. The
class index, the method lists and the ~ home shortening are all Posix there.

Path(store_path).as_posix() before the home shortening makes the line the
same on every host. Nothing else in port_publish.py changes.

Evidence, Windows 11:

  • before: python -m unittest tests.test_port_publish → FAILED (failures=1),
    test_body_has_names_and_signatures_only, expected
    `~/code/horizon-parity/versions/diff-26.3-26.4` and got the backslash
    form above;
  • after, on this commit: Ran 6 tests ... OK.

On Linux and macOS the output is unchanged, since there str(Path) already
used slashes.


🔄 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/3076 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/port-publish-posix-path` --- ### 📝 Commits (2) - [`b08e04c`](https://github.com/horizon-rust/horizon/commit/b08e04cd8a0bca5fa9769f7a6d6b5a855ead9ffe) Port publish: a body names the diff store with Posix separators - [`6a06853`](https://github.com/horizon-rust/horizon/commit/6a0685303281e65d98afac36942a587293a4a8b7) Merge remote-tracking branch 'origin/main' into upd/3076 ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_publish.py` (+2 -1) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. `publish_body` names the diff store with `str(store_path)`, which keeps the host's separators. A Windows run therefore wrote The full diff stays on the maintainer's machine (`~\code\horizon-parity\versions\diff-26.3-26.4`) into the body while every other line of that body is host-independent. The class index, the method lists and the `~` home shortening are all Posix there. `Path(store_path).as_posix()` before the home shortening makes the line the same on every host. Nothing else in `port_publish.py` changes. Evidence, Windows 11: - before: `python -m unittest tests.test_port_publish` → `FAILED (failures=1)`, `test_body_has_names_and_signatures_only`, expected `` `~/code/horizon-parity/versions/diff-26.3-26.4` `` and got the backslash form above; - after, on this commit: `Ran 6 tests ... OK`. On Linux and macOS the output is unchanged, since there `str(Path)` already used slashes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:57 +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#4785
No description provided.