Skip to content

Fix call to SWBBuildService.createSession #8357

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

Closed

Conversation

plemarquand
Copy link
Contributor

swiftlang/swift-build#266 changed the API of SwiftBuildService.createSession.

swiftlang/swift-build#266 changed the API of
SwiftBuildService.createSession.
@plemarquand
Copy link
Contributor Author

@swift-ci please test

switch await service.createSession(name: name, resourceSearchPaths: packageManagerResourcesDirectory.map { [$0.pathString] } ?? [], cachePath: nil, inferiorProductsPath: nil, environment: nil) {
switch await service.createSession(
name: name,
developerPath: nil,
Copy link
Contributor

Choose a reason for hiding this comment

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

developerPath defaults to nil, so it shouldn't be needed here. Were you seeing the build fail in some configuration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think my dependencies got in to a bad state, I switched to a known good toolchain, cleaned and rebuilt and its not an issue.

Copy link
Member

Choose a reason for hiding this comment

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

Same here. Need to remember to swift package update regularly to get the latest swift build.

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.

3 participants