Skip to content

'testExamplePackageDealer' fails due to compilation error on Windows platform #8409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
kcieplak opened this issue Mar 25, 2025 · 2 comments
Open
1 task done
Labels

Comments

@kcieplak
Copy link
Contributor

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

The 'testExamplePackageDealer' clones code from 'https://github.com/apple/example-package-dealer'


try sh("git\(ProcessInfo.exeSuffix)", "clone", "https://github.com/apple/example-package-dealer", packagePath)
let build1Output = try sh(swiftBuild, "--package-path", packagePath).stdout

The code fails to build when on the Windows platform.

C:\Users\kcieplak\AppData\Local\Temp\TemporaryDirectory.7BQqXm\dealer\.build\checkouts\example-package-fisheryates\Sources\FisherYates\random.swift:34:8: error: unsupported platform
32 |

33 | #else

34 | #error("unsupported platform")

   |        `- error: unsupported platform
35 | #endif

36 |

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

@kcieplak
Copy link
Contributor Author

@dschaefer2
Copy link
Member

What's the bug here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants