Skip to content

Commit 314fb0a

Browse files
committed
Remove TSCBasic.InMemoryFileSystem dependency
Since #7483 this type is implemented in SwiftPM.
1 parent d91abb3 commit 314fb0a

File tree

60 files changed

+68
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+68
-160
lines changed

Sources/Basics/SQLiteBackedCache.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import Foundation
1414

1515
import protocol TSCBasic.Closable
16-
import class TSCBasic.InMemoryFileSystem
1716
import var TSCBasic.localFileSystem
1817

1918
/// SQLite backed persistent cache.

Sources/PackageCollections/Storage/SQLitePackageCollectionsStorage.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2020-2023 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2020-2024 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See http://swift.org/LICENSE.txt for license information
@@ -20,7 +20,6 @@ import struct Foundation.URL
2020
import PackageModel
2121

2222
import protocol TSCBasic.Closable
23-
import class TSCBasic.InMemoryFileSystem
2423

2524
final class SQLitePackageCollectionsStorage: PackageCollectionsStorage, Closable {
2625
private static let packageCollectionsTableName = "package_collections"

Sources/SPMTestSupport/InMemoryGitRepository.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2014-2017 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014-2024 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See http://swift.org/LICENSE.txt for license information
@@ -18,7 +18,6 @@ import SourceControl
1818
import struct TSCBasic.ByteString
1919
import enum TSCBasic.FileMode
2020
import struct TSCBasic.FileSystemError
21-
import class TSCBasic.InMemoryFileSystem
2221

2322
/// The error encountered during in memory git repository operations.
2423
package enum InMemoryGitRepositoryError: Swift.Error {

Sources/SPMTestSupport/MockPackageGraphs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import struct Basics.AbsolutePath
14+
import class Basics.InMemoryFileSystem
1415
import class Basics.ObservabilitySystem
1516
import class Basics.ObservabilityScope
1617

@@ -23,7 +24,6 @@ import class PackageModel.Manifest
2324
import struct PackageModel.ProductDescription
2425
import struct PackageModel.TargetDescription
2526
import protocol TSCBasic.FileSystem
26-
import class TSCBasic.InMemoryFileSystem
2727

2828
package typealias MockPackageGraph = (
2929
graph: ModulesGraph,

Sources/SPMTestSupport/MockWorkspace.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2014-2023 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014-2024 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See http://swift.org/LICENSE.txt for license information
@@ -19,8 +19,6 @@ import SourceControl
1919
import Workspace
2020
import XCTest
2121

22-
import class TSCBasic.InMemoryFileSystem
23-
2422
import struct TSCUtility.Version
2523

2624
package final class MockWorkspace {

Sources/Workspace/PackageContainer/RegistryPackageContainer.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2021 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2021-2024 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See http://swift.org/LICENSE.txt for license information
@@ -17,8 +17,6 @@ import PackageLoading
1717
import PackageModel
1818
import PackageRegistry
1919

20-
import class TSCBasic.InMemoryFileSystem
21-
2220
import struct TSCUtility.Version
2321

2422
public class RegistryPackageContainer: PackageContainer {

Sources/Workspace/Workspace+Editing.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2014-2023 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014-2024 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See http://swift.org/LICENSE.txt for license information
@@ -11,13 +11,13 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import struct Basics.AbsolutePath
14+
import class Basics.InMemoryFileSystem
1415
import class Basics.ObservabilityScope
1516
import struct Basics.RelativePath
1617
import func Basics.temp_await
1718
import struct PackageGraph.PackageGraphRootInput
1819
import struct PackageModel.LibraryMetadata
1920
import struct SourceControl.Revision
20-
import class TSCBasic.InMemoryFileSystem
2121

2222
extension Workspace {
2323
/// Edit implementation.

Sources/Workspace/Workspace.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import SourceControl
2323

2424
import func TSCBasic.findCycle
2525
import protocol TSCBasic.HashAlgorithm
26-
import class TSCBasic.InMemoryFileSystem
2726
import struct TSCBasic.KeyedPair
2827
import struct TSCBasic.SHA256
2928
import var TSCBasic.stderrStream

Tests/BasicsTests/Archiver/TarArchiverTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2014-2023 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014-2024 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See http://swift.org/LICENSE.txt for license information
@@ -15,7 +15,6 @@ import TSCclibc // for SPM_posix_spawn_file_actions_addchdir_np_supported
1515
import SPMTestSupport
1616
import XCTest
1717

18-
import class TSCBasic.InMemoryFileSystem
1918
import struct TSCBasic.FileSystemError
2019

2120
final class TarArchiverTests: XCTestCase {

Tests/BasicsTests/Archiver/UniversalArchiverTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2014-2023 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014-2024 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See http://swift.org/LICENSE.txt for license information
@@ -15,7 +15,6 @@ import TSCclibc // for SPM_posix_spawn_file_actions_addchdir_np_supported
1515
import SPMTestSupport
1616
import XCTest
1717

18-
import class TSCBasic.InMemoryFileSystem
1918
import struct TSCBasic.FileSystemError
2019

2120
final class UniversalArchiverTests: XCTestCase {

0 commit comments

Comments
 (0)