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

Provide build settings for version-specific package manifests #1845

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Nov 22, 2024

Fixes #1670
rdar://136014520

@ahoppen
Copy link
Member Author

ahoppen commented Nov 22, 2024

@swift-ci Please test

@@ -537,16 +537,29 @@ package actor SwiftPMBuildSystem: BuiltInBuildSystem {
// (https://github.com/swiftlang/sourcekit-lsp/issues/1267)
for target in request.targets {
if target == .forPackageManifest {
let packageManifestName = #/^Package@swift-(\d+)(?:\.(\d+))?(?:\.(\d+))?.swift$/#
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is copy-pasted from SwiftPM, but I should note that .swift should be \.swift here. Would it be worth exposing the regex (or an API that returns all the manifests) from SwiftPM to ensure this remains up-to-date?

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

Successfully merging this pull request may close these issues.

Provide semantic functionality in [email protected]
2 participants