Skip to content

Commit 0dfb5ea

Browse files
JosephDuffythomasvl
authored andcommitted
Update SwiftPM package syntax
Updated to match syntax in README.md
1 parent 9096cc5 commit 0dfb5ea

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Documentation/PLUGIN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ above:
181181

182182
```swift
183183
dependencies: [
184-
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(1,0,1))
184+
.package(name: "SwiftProtobuf", url: "https://github.com/apple/swift-protobuf.git", from: "1.6.0"),
185185
]
186186
```
187187

Sources/protoc-gen-swift/main.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ struct GeneratorPlugin {
108108
+ "Package.swift:\n"
109109
+ "\n"
110110
+ " dependencies: [\n"
111-
+ " .Package(url: \"https://github.com/apple/swift-protobuf\",\n"
112-
+ " Version(\(packageVersion)))\n"
111+
+ " .package(name: \"SwiftProtobuf\", url: \"https://github.com/apple/swift-protobuf.git\", from: \"\(packageVersion)\"),"
113112
+ " ]\n"
114113
+ "\n"
115114
+ "\n"

0 commit comments

Comments
 (0)