-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove explicit macOS platform requirement from Package.swift
#802
Conversation
SPM fails in this commit, we'll fix it in the next. Leaving it in this state for demonstration purposes.
This prevents builds failing with: > error: the library 'CoreAPI' requires macos 10.13, but depends on the > product 'WordPressShared' which requires macos 12.0; consider changing > the library 'CoreAPI' to require macos 12.0 or later, or the product > 'WordPressShared' to require macos 10.13 or earlier. WordPressShared internally depends on the SwiftLint plugin, which explicitly declares a macOS version.
Generated by 🚫 Danger |
@mokagio about the @dangermattic warning below, I guess it does make sense on this case? Or there was no change in the
|
@iangmaia good observation, thanks.
I think the wording is an adaptation of what we used for Maybe we should update the wording... 🤔
Alternatively, we could improve the logic that picks up the |
That's what I was unsure about, though I was imagining
That's better indeed!
Indeed! I think an improved message already helps a bit. I've then created the issue Automattic/dangermattic#65 |
It was there because of an error related to the WordPressShared dependency using the SwiftLint build plugin. I discovered what I think is a better approach to set up the dependency, which does not require explicitly declaring macOS support.
Before
After
Testing Details
See green CI.
However, notice CI doesn't build the package, so the test might give a false positive for this change.
One way to verify it is to run the following script:
CHANGELOG.md
if necessary. — N.A.