Skip to content

Commit 4e941c9

Browse files
mikolalysenkoclaude
andcommitted
test(golang): gate unix-only go e2e suites with cfg(unix) for Windows CI
e2e_golang_redirect.rs and e2e_golang_build.rs use std::os::unix permissions (matching the cargo e2e suites, which are also #[cfg(unix)]); without the gate they fail to compile on test (windows-latest). setup_go_roundtrip.rs stays cross-platform (pure std::fs) for Windows setup-wiring coverage. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 33aa071 commit 4e941c9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/socket-patch-cli/tests/e2e_golang_build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg(feature = "golang")]
1+
#![cfg(all(unix, feature = "golang"))]
22
//! Full go-toolchain capstone for the Go `replace`-redirect guard: proves the
33
//! patched bytes are actually LINKED by `go build`, and that the committed guard
44
//! enforces drift at runtime (`init()`) and self-heals.

crates/socket-patch-cli/tests/e2e_golang_redirect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg(feature = "golang")]
1+
#![cfg(all(unix, feature = "golang"))]
22
//! End-to-end for the Go `replace`-redirect backend, driven through the CLI
33
//! binary. No `go` toolchain needed: `apply`/`--check` only read a pristine
44
//! extracted module-cache dir and write project-local copies + a `go.mod`

0 commit comments

Comments
 (0)