Skip to content

Commit

Permalink
ci: Enable Swift 6 Language Mode checks
Browse files Browse the repository at this point in the history
  • Loading branch information
euanh committed Oct 2, 2024
1 parent 1ae5ba7 commit 5bd3206
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ jobs:
docs_check_container_image: "swift:6.0-noble"
license_header_check_project_name: "SwiftContainerPlugin"
shell_check_container_image: "swift:6.0-noble"

swift-6-language-mode:
name: Swift 6 Language Mode
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public final class NetrcAuthorizationProvider: AuthorizationProvider {

private static func load(_ path: URL) throws -> Netrc? {
do {
let content = try? String(contentsOf: path)
let content = try? String(contentsOf: path, encoding: .utf8)
return try NetrcParser.parse(content ?? "")
} catch NetrcError.machineNotFound {
// Thrown by parse() if .netrc is empty.
Expand Down

0 comments on commit 5bd3206

Please sign in to comment.