Skip to content

Commit 867bbb6

Browse files
authored
Fix typos
1 parent 532484c commit 867bbb6

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

Sources/XCRemoteCache/Commands/Prepare/Integrate/IntegrateContext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ extension IntegrateContext {
5050
var swiftcBinaryName = "swiftc"
5151
var buildSettingsAppenderOptions: BuildSettingsIntegrateAppenderOption = []
5252
// Keep the legacy behaviour (supported in Xcode 14 and lower)
53-
if !config.enableSwifDriverIntegration {
53+
if !config.enableSwiftDriverIntegration {
5454
buildSettingsAppenderOptions.insert(.disableSwiftDriverIntegration)
5555
swiftcBinaryName = "xcswiftc"
5656
}

Sources/XCRemoteCache/Commands/SwiftFrontend/SwiftFrontendArgInput.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ enum SwiftFrontendArgInputError: Error, Equatable {
4343
// -target is required
4444
case emitMissingTarget
4545
// -moduleName is required
46-
case emiMissingModuleName
46+
case emitMissingModuleName
4747
}
4848

4949
public struct SwiftFrontendArgInput {
@@ -224,7 +224,7 @@ public struct SwiftFrontendArgInput {
224224
throw SwiftFrontendArgInputError.emitMissingTarget
225225
}
226226
guard let moduleName = moduleName else {
227-
throw SwiftFrontendArgInputError.emiMissingModuleName
227+
throw SwiftFrontendArgInputError.emitMissingModuleName
228228
}
229229

230230
if compile {

Sources/XCRemoteCache/Config/XCRemoteCacheConfig.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public struct XCRemoteCacheConfig: Encodable {
156156
/// That might useful on CI, where a shallow clone is used
157157
var gracefullyHandleMissingCommonSha: Bool = false
158158
/// Enable experimental integration with swift driver, added in Xcode 14
159-
var enableSwifDriverIntegration: Bool = false
159+
var enableSwiftDriverIntegration: Bool = false
160160
}
161161

162162
extension XCRemoteCacheConfig {
@@ -217,7 +217,7 @@ extension XCRemoteCacheConfig {
217217
merge.irrelevantDependenciesPaths = scheme.irrelevantDependenciesPaths ?? irrelevantDependenciesPaths
218218
merge.gracefullyHandleMissingCommonSha =
219219
scheme.gracefullyHandleMissingCommonSha ?? gracefullyHandleMissingCommonSha
220-
merge.enableSwifDriverIntegration = scheme.enableSwifDriverIntegration ?? enableSwifDriverIntegration
220+
merge.enableSwiftDriverIntegration = scheme.enableSwiftDriverIntegration ?? enableSwiftDriverIntegration
221221
return merge
222222
}
223223

@@ -286,7 +286,7 @@ struct ConfigFileScheme: Decodable {
286286
let customRewriteEnvs: [String]?
287287
let irrelevantDependenciesPaths: [String]?
288288
let gracefullyHandleMissingCommonSha: Bool?
289-
let enableSwifDriverIntegration: Bool?
289+
let enableSwiftDriverIntegration: Bool?
290290

291291
// Yams library doesn't support encoding strategy, see https://github.com/jpsim/Yams/issues/84
292292
enum CodingKeys: String, CodingKey {
@@ -338,7 +338,7 @@ struct ConfigFileScheme: Decodable {
338338
case customRewriteEnvs = "custom_rewrite_envs"
339339
case irrelevantDependenciesPaths = "irrelevant_dependencies_paths"
340340
case gracefullyHandleMissingCommonSha = "gracefully_handle_missing_common_sha"
341-
case enableSwifDriverIntegration = "enable_swift_driver_integration"
341+
case enableSwiftDriverIntegration = "enable_swift_driver_integration"
342342
}
343343
}
344344

Tests/XCRemoteCacheTests/Commands/Prepare/Integrate/IntegrateContextTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class IntegrateTests: FileXCTestCase {
5050
}
5151

5252
func testEnablesDriverOnRequest() throws {
53-
config.enableSwifDriverIntegration = true
53+
config.enableSwiftDriverIntegration = true
5454
let context = try IntegrateContext(
5555
input: "project.xcodeproj",
5656
config: config,

Tests/XCRemoteCacheTests/Commands/SwiftFrontend/SwiftFrontendArgInputTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class SwiftFrontendArgInputTests: FileXCTestCase {
102102
target = "Target"
103103
buildInput()
104104

105-
assertGenerationError(SwiftFrontendArgInputError.emiMissingModuleName)
105+
assertGenerationError(SwiftFrontendArgInputError.emitMissingModuleName)
106106
}
107107

108108
func testFailsIfNoCompileHasNoPrimaryInputs() throws {

0 commit comments

Comments
 (0)