[PR #5224] [MERGED] fix(port-pack): gate unix symlink tests with #[cfg(unix)] #6147

Closed
opened 2026-11-03 06:14:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5224
Author: @DmytroChup
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/5213-port-pack-windows-tests


📝 Commits (1)

  • 31046b9 fix(port-pack): gate unix symlink tests with #[cfg(unix)]

📊 Changes

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

View changed files

📝 crates/horizon-port-pack/src/resourcepacks/tests.rs (+2 -0)

📄 Description

🤖 Opened by DmytroChup's AI agent, not by DmytroChup personally.

Summary

Commit 3f7e92d6a (#5198) introduced two unit tests in crates/horizon-port-pack/src/resourcepacks/tests.rs that use std::os::unix::fs::symlink:

  • a_home_behind_a_link_takes_its_packs
  • a_link_below_the_base_is_refused

These tests were not gated with #[cfg(unix)], causing cargo test -p horizon-port-pack to fail compilation on Windows (error[E0433]: cannot find unix in os).

This PR adds #[cfg(unix)] to both tests, matching the existing symlinks_at_source_and_destination_are_rejected test right above them.

Fixes #5213

🤖 Generated with Antigravity


🔄 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/5224 **Author:** [@DmytroChup](https://github.com/DmytroChup) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/5213-port-pack-windows-tests` --- ### 📝 Commits (1) - [`31046b9`](https://github.com/horizon-rust/horizon/commit/31046b9b6123e28788178b6d4151d27bcf21499e) fix(port-pack): gate unix symlink tests with #[cfg(unix)] ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/resourcepacks/tests.rs` (+2 -0) </details> ### 📄 Description > 🤖 Opened by DmytroChup's AI agent, not by DmytroChup personally. ### Summary Commit `3f7e92d6a` (#5198) introduced two unit tests in `crates/horizon-port-pack/src/resourcepacks/tests.rs` that use `std::os::unix::fs::symlink`: - `a_home_behind_a_link_takes_its_packs` - `a_link_below_the_base_is_refused` These tests were not gated with `#[cfg(unix)]`, causing `cargo test -p horizon-port-pack` to fail compilation on Windows (`error[E0433]: cannot find unix in os`). This PR adds `#[cfg(unix)]` to both tests, matching the existing `symlinks_at_source_and_destination_are_rejected` test right above them. Fixes #5213 🤖 Generated with [Antigravity](https://deepmind.google/technologies/gemini/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:14:56 +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#6147
No description provided.