Skip to content

Commit

Permalink
feat: Switched from the Loopwerk fork of PathKit back to the original…
Browse files Browse the repository at this point in the history
… repo
  • Loading branch information
kevinrenskers committed Mar 28, 2022
1 parent 356bb92 commit 23331e4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Example/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
},
{
"package": "PathKit",
"repositoryURL": "https://github.com/loopwerk/PathKit",
"repositoryURL": "https://github.com/kylef/PathKit",
"state": {
"branch": null,
"revision": "a77fe683402ecfe2dfa9fa18e7aaca1a9f806f40",
"version": "1.2.0"
"revision": "3bfd2737b700b9a36565a8c94f4ad2b050a5e574",
"version": "1.0.1"
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
},
{
"package": "PathKit",
"repositoryURL": "https://github.com/loopwerk/PathKit",
"repositoryURL": "https://github.com/kylef/PathKit",
"state": {
"branch": null,
"revision": "a77fe683402ecfe2dfa9fa18e7aaca1a9f806f40",
"version": "1.2.0"
"revision": "3bfd2737b700b9a36565a8c94f4ad2b050a5e574",
"version": "1.0.1"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let package = Package(
.executable(name: "watch", targets: ["SagaCLI"])
],
dependencies: [
.package(url: "https://github.com/loopwerk/PathKit", from: "1.1.0"),
.package(url: "https://github.com/kylef/PathKit", from: "1.0.1"),
.package(url: "https://github.com/JohnSundell/Codextended.git", from: "0.1.0"),
.package(url: "https://github.com/apple/swift-docc-plugin.git", branch: "main"),
],
Expand Down
2 changes: 1 addition & 1 deletion Sources/Saga/Item.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation
import PathKit

public protocol Metadata: Codable {}
public protocol Metadata: Decodable {}

/// A convenience version of ``Metadata`` that's just empty. This can be used, for example, when you don't have custom item metadata or site metadata.
public struct EmptyMetadata: Metadata {
Expand Down
8 changes: 8 additions & 0 deletions Sources/Saga/Path+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ public extension Path {
}
}

extension Path: Decodable {
public init(from decoder: Decoder) throws {
let container = try decoder.singleValueContainer()
let decodedString = try container.decode(String.self)
self.init(decodedString)
}
}

internal extension Path {
func resolveSwiftPackageFolder() throws -> Path {
var nextFolder = parent()
Expand Down

0 comments on commit 23331e4

Please sign in to comment.