Unable to build tests on Linux with swift-parsing 0.13.0 as dependency #327
-
I've been trying to bump swift-parsing to the latest release 0.13.0 (from 0.12.0) but I'm getting a build error when running tests on Linux ( I've created a stripped down reproducer:
with the following manifest: // swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "test",
products: [
.library(name: "test", targets: ["test"]),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-parsing.git", from: "0.13.0"),
],
targets: [
.target(
name: "test",
dependencies: [
.product(name: "Parsing", package: "swift-parsing"),
]
),
.testTarget(name: "testTests", dependencies: ["test"]),
]
) With this in place
will trigger the build failure:
I'm at a loss what might trigger this. Some module that's referenced by default on macOS but needs an explicit import on Linux perhaps? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Both swift-parsing and swift-case-paths individually run |
Beta Was this translation helpful? Give feedback.
-
@finestructure I believe there are a few SPM bugs that cause We're open to other ideas, but since this seems to be an Apple bug and not a bug in the library, I'm going to convert it to a discussion. |
Beta Was this translation helpful? Give feedback.
-
@finestructure Do you think the 5.9 failures I'm seeing here are related? https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/builds |
Beta Was this translation helpful? Give feedback.
-
Oh, that's new. I think it's a different problem though. If you go to the start of the logs you can see the problem:
I'll need to see if there's a way to allow macros from the command line. |
Beta Was this translation helpful? Give feedback.
-
Mmm, this may not be just a Linux problem. I've just started work on a new package on macOS. Here's the manifest: // swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "CanonicalPackageURLs",
platforms: [.macOS(.v10_15)],
products: [
.library(
name: "CanonicalPackageURLs",
targets: ["CanonicalPackageURLs"]),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-parsing", from: "0.13.0")
],
targets: [
.target(
name: "CanonicalPackageURLs",
dependencies: [
.product(name: "Parsing", package: "swift-parsing")
]
),
.testTarget(name: "CanonicalPackageURLsTests", dependencies: ["CanonicalPackageURLs"]),
]
) Running
|
Beta Was this translation helpful? Give feedback.
@finestructure Yup it was an issue that affected the Swift command line but not Xcode, so both Linux and macOS were affected. Now that Swift 5.9.2 is out you should be able to upgrade, though!