Skip to content

Commit

Permalink
refactor(swiftpm): Reduce the visibility of the model to internal
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Feb 2, 2024
1 parent 8c6d7ae commit 38709a7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private val json = Json { ignoreUnknownKeys = true }
* The data model for the output of the command `swift package show-dependencies --format json`.
*/
@Serializable
data class SwiftPackage(
internal data class SwiftPackage(
val identity: String,
val name: String,
val url: String,
Expand All @@ -56,7 +56,7 @@ data class SwiftPackage(
* See https://github.com/apple/swift-package-manager/blob/3ef830dddff459e569d6e49c186c3ded33c39bcc/Sources/PackageGraph/PinsStore.swift#L387-L462.
*/
@Serializable
data class PinV2(
internal data class PinV2(
val identity: String,
val state: PinState?,
val location: String,
Expand All @@ -77,7 +77,7 @@ data class PinV2(
* and https://github.com/apple/swift-package-manager/blob/3ef830dddff459e569d6e49c186c3ded33c39bcc/Sources/PackageGraph/PinsStore.swift#L440-L461.
*/
@Serializable
data class PinState(
internal data class PinState(
val version: String? = null,
val revision: String? = null,
val branch: String? = null
Expand Down

0 comments on commit 38709a7

Please sign in to comment.