Skip to content

Commit 8615e3b

Browse files
authored
Remove more incorrect os gates (#632)
A lot of logic we have works perfectly fine on other OS'.
1 parent 4c28821 commit 8615e3b

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

Sources/Containerization/FileMount.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
#if os(macOS)
18-
1917
import ContainerizationError
2018
import ContainerizationOCI
2119
import Foundation
@@ -237,5 +235,3 @@ extension FileMountContext {
237235
}
238236
}
239237
}
240-
241-
#endif

Sources/Containerization/LinuxContainer.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
#if os(macOS)
1817
import ContainerizationArchive
1918
import ContainerizationError
2019
import ContainerizationExtras
@@ -1288,5 +1287,3 @@ struct IOUtil {
12881287
)
12891288
}
12901289
}
1291-
1292-
#endif

Sources/Containerization/Mount.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
// limitations under the License.
1515
//===----------------------------------------------------------------------===//
1616

17-
#if os(macOS)
17+
import ContainerizationError
1818
import Foundation
19+
20+
#if os(macOS)
1921
import Virtualization
20-
import ContainerizationError
2122
#endif
2223

2324
/// A filesystem mount exposed to a container.

0 commit comments

Comments
 (0)