Skip to content

[6.0] Work around swift-bootstrap inability to handle plugins #7751

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

Merged
merged 2 commits into from
Jul 4, 2024

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Jul 3, 2024

Cherry-pick of #7750.

Explanation: swift-bootstrap currently can't handle dependencies with plugins, which prevents us from bumping Swift Argument Parser to a newer version, which did add a dependency on a plugin. The easiest workaround is to exclude plugins from the modules graph only when building with swift-bootstrap.
Scope: isolated to the swift-bootstrap command.
Risk: low due to isolated scope and the NFC nature of the change for all non-bootstrap builds (which are all of the common builds, swift-bootstrap is only used to build SwiftPM itself).
Testing: automated, swift-bootstrap is exercised in every CI build.
Issue: rdar://118081439
Reviewer: @xedin

**Explanation**: `swift-bootstrap` currently can't handle dependencies with plugins, which prevents us from bumping Swift Argument Parser to a newer version, which did add a dependency on a plugin. The easiest workaround is to exclude plugins from the modules graph only when building with `swift-bootstrap`.
**Scope**: isolated to the `swift-bootstrap` command.
**Risk**: low due to isolated scope and the NFC nature of the change for all non-bootstrap builds (which are all of the common builds, `swift-bootstrap` is only used to build SwiftPM itself).
**Testing**: automated, `swift-bootstrap` builds are exercised on every CI build.
**Issue**: rdar://118081439
**Reviewer**: @bnbarham
@MaxDesiatov MaxDesiatov added bug modules graph Modules dependency resolution labels Jul 3, 2024
@MaxDesiatov MaxDesiatov requested a review from a team as a code owner July 3, 2024 17:24
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov changed the title Work around swift-bootstrap inability to handle plugins [6.0] Work around swift-bootstrap inability to handle plugins Jul 3, 2024
@MaxDesiatov MaxDesiatov added the swift 6.0 Related to Swift 6.0 release branch label Jul 3, 2024
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov merged commit 7a85154 into release/6.0 Jul 4, 2024
5 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/swift-bootstrap-plugins-6.0 branch July 4, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug modules graph Modules dependency resolution swift 6.0 Related to Swift 6.0 release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants