Commit 51c1c64
committed
fix: protect Unix-specific imports with cfg attributes
- Add #[cfg(unix)] to std::os::unix::fs::PermissionsExt imports
- Protect Unix-specific test functions with #[cfg(unix)]
- Fixes compilation on Windows by conditionally compiling Unix-only code
- Resolves GitHub Actions workflow failure on Windows runners
Affected files:
- src/e2e/tasks/setup_ssh_key.rs
- src/infrastructure/tofu/template/renderer/mod.rs
- src/infrastructure/ansible/template/renderer/inventory.rs
- src/domain/template/embedded.rs
All tests pass on Unix systems and code now compiles cross-platform.1 parent c1888b2 commit 51c1c64
File tree
4 files changed
+5
-0
lines changed- src
- domain/template
- e2e/tasks
- infrastructure
- ansible/template/renderer
- tofu/template/renderer
4 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| 514 | + | |
514 | 515 | | |
515 | 516 | | |
516 | 517 | | |
| |||
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
| 597 | + | |
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
| |||
0 commit comments