Skip to content

Commit 91af227

Browse files
committed
Categorize the xcode toolchain version as a system toolchain type
1 parent 28e54e8 commit 91af227

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Sources/Swiftly/OutputSchema.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct AvailableToolchainInfo: OutputData {
126126
try versionContainer.encode(minor, forKey: .minor)
127127
}
128128
case .xcode:
129-
try versionContainer.encode("xcode", forKey: .type)
129+
try versionContainer.encode("system", forKey: .type)
130130
}
131131
}
132132
}
@@ -235,8 +235,8 @@ struct InstallToolchainInfo: OutputData {
235235
try versionContainer.encode(major, forKey: .major)
236236
try versionContainer.encode(minor, forKey: .minor)
237237
}
238-
case let .xcode:
239-
try versionContainer.encode("xcode", forKey: .type)
238+
case .xcode:
239+
try versionContainer.encode("system", forKey: .type)
240240
}
241241
}
242242

@@ -283,7 +283,8 @@ struct InstallToolchainInfo: OutputData {
283283
branch: branch,
284284
date: date
285285
))
286-
case "xcode":
286+
case "system":
287+
// The only system toolchain that exists at the moment is the xcode version
287288
self.version = .xcode
288289
default:
289290
throw DecodingError.dataCorruptedError(

0 commit comments

Comments
 (0)