Skip to content

Commit 665efb1

Browse files
johnliedtkebioball
authored andcommitted
Fix: Trim trailing newline from VERSION.txt to prevent malformed package URIs (#92)
1 parent 530d0c4 commit 665efb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/pkl-gen-swift/PklGenSwift.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Foundation
1919
import PklSwift
2020
import SystemPackage
2121

22-
let VERSION = String(decoding: Data(PackageResources.VERSION_txt), as: UTF8.self)
22+
let VERSION = String(decoding: Data(PackageResources.VERSION_txt), as: UTF8.self).trimmingCharacters(in: .whitespacesAndNewlines)
2323

2424
struct ConsoleOutputStream: TextOutputStream {
2525
mutating func write(_ string: String) {

0 commit comments

Comments
 (0)