Skip to content

Expose platformVersionProvider with @_spi(SwiftPMInternal) #7819

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 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Sources/Build/BuildPlan/BuildPlan+Test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ import struct Basics.AbsolutePath
import struct LLBuildManifest.TestDiscoveryTool
import struct LLBuildManifest.TestEntryPointTool
import struct PackageGraph.ModulesGraph

@_spi(SwiftPMInternal)
import struct PackageGraph.ResolvedPackage

@_spi(SwiftPMInternal)
import struct PackageGraph.ResolvedProduct

@_spi(SwiftPMInternal)
import struct PackageGraph.ResolvedModule

import struct PackageModel.Sources
import class PackageModel.SwiftModule
import class PackageModel.Module
Expand Down
3 changes: 2 additions & 1 deletion Sources/PackageGraph/Resolution/ResolvedModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ public struct ResolvedModule {
/// The list of platforms that are supported by this module.
public let supportedPlatforms: [SupportedPlatform]

private let platformVersionProvider: PlatformVersionProvider
@_spi(SwiftPMInternal)
public let platformVersionProvider: PlatformVersionProvider

/// Triple for which this resolved module should be compiled for.
public package(set) var buildTriple: BuildTriple {
Expand Down
3 changes: 2 additions & 1 deletion Sources/PackageGraph/Resolution/ResolvedPackage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public struct ResolvedPackage {
/// If the given package's source is a registry release, this provides additional metadata and signature information.
public let registryMetadata: RegistryReleaseMetadata?

private let platformVersionProvider: PlatformVersionProvider
@_spi(SwiftPMInternal)
public let platformVersionProvider: PlatformVersionProvider

public init(
underlying: Package,
Expand Down
1 change: 1 addition & 0 deletions Sources/PackageGraph/Resolution/ResolvedProduct.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public struct ResolvedProduct {
/// The list of platforms that are supported by this product.
public let supportedPlatforms: [SupportedPlatform]

@_spi(SwiftPMInternal)
public let platformVersionProvider: PlatformVersionProvider

/// Triple for which this resolved product should be compiled for.
Expand Down