Skip to content

Commit 1a65398

Browse files
committed
Fix decoding of WorkspaceState
1 parent 2d76085 commit 1a65398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Workspace/WorkspaceState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ fileprivate struct WorkspaceStateStorage {
230230
let path = try container.decode(AbsolutePath?.self, forKey: .path)
231231
return self.init(underlying: .edited(basedOn: basedOn.map { .init($0) }, unmanagedPath: path))
232232
case "downloaded":
233-
let version = try container.decode(TSCUtility.Version.self, forKey: .path)
233+
let version = try container.decode(TSCUtility.Version.self, forKey: .version)
234234
return self.init(underlying: .downloaded(version: version))
235235
default:
236236
throw InternalError("unknown checkout state \(kind)")

0 commit comments

Comments
 (0)