Skip to content

Commit bb53147

Browse files
committed
Fix for linux instead of macos-13
1 parent 948b9eb commit bb53147

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Scripts/GeneratorConfigBuilder.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ struct GeneratorConfigBuilder {
3939

4040
func write() throws {
4141
let fileURL = URL(fileURLWithPath: FileManager.default.currentDirectoryPath)
42-
.appending(path: "Sources")
43-
.appending(path: tagString)
44-
.appending(path: "openapi-generator-config.yml")
42+
.appendingPathComponent("Sources")
43+
.appendingPathComponent(tagString)
44+
.appendingPathComponent("openapi-generator-config.yml")
4545
let fileContent = getTemplate()
4646
guard let data = fileContent.data(using: .utf8) else {
4747
throw ErrorMessage(message: "Variable data not found.")

Scripts/PackageBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct SourcesBuilder {
4747

4848
init() throws {
4949
let directoryURL = URL(fileURLWithPath: FileManager.default.currentDirectoryPath)
50-
.appending(path: "Sources")
50+
.appendingPathComponent("Sources")
5151
let resourceKeys = Set<URLResourceKey>([.nameKey, .isDirectoryKey])
5252

5353
guard let directoryEnumerator = FileManager.default.enumerator(
@@ -163,7 +163,7 @@ struct PackageBuilder {
163163
}
164164
func write() throws {
165165
let fileURL = URL(fileURLWithPath: FileManager.default.currentDirectoryPath)
166-
.appending(path: version.fileName)
166+
.appendingPathComponent(version.fileName)
167167
let fileContent = try getTemplate()
168168
guard let data = fileContent.data(using: .utf8) else {
169169
throw ErrorMessage(message: "Variable data not found.")

Scripts/SPIManifestBuilder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct SourcesBuilder {
4747

4848
init() throws {
4949
let directoryURL = URL(fileURLWithPath: FileManager.default.currentDirectoryPath)
50-
.appending(path: "Sources")
50+
.appendingPathComponent("Sources")
5151
let resourceKeys = Set<URLResourceKey>([.nameKey, .isDirectoryKey])
5252

5353
guard let directoryEnumerator = FileManager.default.enumerator(
@@ -92,7 +92,7 @@ struct SPIManifestBuilder {
9292

9393
func write() throws {
9494
let fileURL = URL(fileURLWithPath: FileManager.default.currentDirectoryPath)
95-
.appending(path: ".spi.yml")
95+
.appendingPathComponent(".spi.yml")
9696
let fileContent = try getTemplate()
9797
guard let data = fileContent.data(using: .utf8) else {
9898
throw ErrorMessage(message: "Variable data not found.")

0 commit comments

Comments
 (0)