Skip to content
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

penny-bot package failure in swift-source-compat-suite #7521

Open
1 task done
MaxDesiatov opened this issue May 2, 2024 · 0 comments
Open
1 task done

penny-bot package failure in swift-source-compat-suite #7521

MaxDesiatov opened this issue May 2, 2024 · 0 comments

Comments

@MaxDesiatov
Copy link
Contributor

MaxDesiatov commented May 2, 2024

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

  • Confirmed reproduction steps with SwiftPM CLI.

Description

After separating build artifacts for host and target triples in #7118, it's no longer possible to import macro modules into modules built for the target triple. This is the desired behavior, otherwise macros would have to be built twice: once for the host triple and once for the target triple.

Unfortunately, we see that /~https://github.com/DiscordBM/DiscordBM library relied on that old undefined behavior, and that package is a dependency of penny-bot in swift-source-compat-suite. This issue tracks the ongoing work to resolve that failure and to clarify the current behavior in our documentation. Most likely DiscordBM dependency would have to be updated to resolve the issue.

Expected behavior

swift-source-compat-suite passes.

Actual behavior

swift-source-compat-suite fails with this error:

penny-bot/.build/checkouts/DiscordBM/Sources/DiscordModels/UnstableEnumMacro.swift:1:8: error: no such module 'UnstableEnumMacro'
 1 | import UnstableEnumMacro
   |        `- error: no such module 'UnstableEnumMacro'

Steps to reproduce

Run swift-source-compat-suite with the latest development snapshot of the Swift toolchain.

Swift Package Manager version/commit hash

8db2401

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

Apple Swift version 6.0-dev (LLVM 85bfcc565707685, Swift 250758335c888cc)
Target: arm64-apple-macosx14.0

@MaxDesiatov MaxDesiatov self-assigned this May 2, 2024
MaxDesiatov added a commit to swiftlang/swift-source-compat-suite that referenced this issue May 2, 2024
@MaxDesiatov MaxDesiatov removed their assignment Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant