-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Hide build system internals with @_spi
#7365
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
Conversation
These details should not leak outside of the SwiftPM package. In the (hopefully temporary) absence of `package` access control, we can hide build system-related APIs with `@_spi` annotations.
@swift-ci test |
@swift-ci test |
@swift-ci test |
@swift-ci test windows |
@swift-ci test macos |
…xd/spi-build-system # Conflicts: # Sources/Commands/SwiftBuildCommand.swift # Sources/Commands/SwiftRunCommand.swift # Sources/Commands/SwiftTestCommand.swift # Sources/CoreCommands/BuildSystemSupport.swift # Sources/CoreCommands/SwiftCommandState.swift # Sources/swift-package-manager/SwiftPM.swift
@swift-ci test |
@swift-ci test windows |
…xd/spi-build-system # Conflicts: # Sources/Commands/SwiftBuildCommand.swift # Sources/Commands/SwiftRunCommand.swift
@swift-ci test |
@swift-ci test windows |
@testable import CoreCommands | ||
|
||
@_spi(SwiftPMInternal) | ||
@testable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to remove all our @testable too IMO (to avoid the rebuild) and use SPI instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind of weird that @testable
doesn't automagically work like @_spi
and requires rebuilding stuff, isn't it?
@swift-ci test |
@swift-ci test |
@swift-ci test windows |
These details should not leak outside of the SwiftPM package. In the (hopefully temporary) absence of `package` access control, we can hide build system-related APIs with `@_spi` annotations.
These details should not leak outside of the SwiftPM package. In the (hopefully temporary) absence of `package` access control, we can hide build system-related APIs with `@_spi` annotations.
This reverts commit 92d65bf.
This reverts commit 92d65bf.
These details should not leak outside of the SwiftPM package. In the (hopefully temporary) absence of
package
access control, we can hide build system-related APIs with@_spi
annotations.