Skip to content

Commit d96d30c

Browse files
authored
PackageDescription: fix access to underscored properties (#3548)
Underscored properties of `Target` shouldn't be available to callers of the PackageDescription API. The public access was probably a typo.
1 parent e84fd1c commit d96d30c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/PackageDescription/Target.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ public final class Target {
6262
///
6363
/// The URL points to a ZIP file that contains an XCFramework at its root.
6464
/// Binary targets are only available on Apple Platforms.
65+
@available(_PackageDescription, introduced: 5.3)
6566
public var url: String? {
6667
get { _url }
6768
set { _url = newValue }
6869
}
69-
public var _url: String?
70+
private var _url: String?
7071

7172
/// The source files in this target.
7273
///
@@ -170,7 +171,7 @@ public final class Target {
170171
get { _checksum }
171172
set { _checksum = newValue }
172173
}
173-
public var _checksum: String?
174+
private var _checksum: String?
174175

175176
/// The usages of package plugins by the target.
176177
@available(_PackageDescription, introduced: 5.5)

0 commit comments

Comments
 (0)