Skip to content

enable netrc on non-darwin platforms #211

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Sources/TSCUtility/Netrc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@ extension AuthorizationProviding {
}
}

#if os(Windows)
// FIXME: - add support for Windows when regex function available
#endif

#if os(Linux)
// FIXME: - add support for Linux when regex function available
#endif

#if os(macOS)
/*
Netrc feature depends upon `NSTextCheckingResult.range(withName name: String) -> NSRange`,
which is only available in macOS 10.13+ at this time.
Expand Down Expand Up @@ -168,4 +159,3 @@ fileprivate enum RegexUtil {
return #"\s*\#(string)\s+(?<\#(prefix + string)>\S++)"#
}
}
#endif
3 changes: 1 addition & 2 deletions Tests/TSCUtilityTests/NetrcTests.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import XCTest
import TSCUtility

#if os(macOS)
@available(macOS 10.13, *)
/// Netrc feature depends upon `NSTextCheckingResult.range(withName name: String) -> NSRange`,
/// which is only available in macOS 10.13+ at this time.
Expand Down Expand Up @@ -445,4 +444,4 @@ class NetrcTests: XCTestCase {
XCTAssertEqual(netrc.machines[1].password, "sunshine4ever")
}
}
#endif