-
Notifications
You must be signed in to change notification settings - Fork 1.4k
adopt swift-collections #3590
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
adopt swift-collections #3590
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,6 +164,13 @@ For example, if the latest tag is 1.1.3: | |
$> git clone https://github.com/apple/swift-crypto --branch 1.1.3 | ||
``` | ||
|
||
5. Clone [swift-collections](https://github.com/apple/swift-collections) beside the SwiftPM directory and check out tag with the [latest version](https://github.com/apple/swift-collections/tags). | ||
|
||
For example, if the latest tag is 0.0.3: | ||
```bash | ||
$> git clone https://github.com/apple/swift-collections --branch 0.0.3 | ||
``` | ||
|
||
Comment on lines
+168
to
+173
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could the command examples be indented by 3 spaces so it's structurally more clear that they're part of the list items? Also, could argument parser and swift crypto's versions in the commands be updated to 0.4.3 and 1.1.4, to align with what's in |
||
#### Building | ||
|
||
```bash | ||
|
@@ -374,4 +381,3 @@ $> swift package update | |
``` | ||
Alternatively, if you are using Xcode, you can update to the latest version of all packages: | ||
**Xcode App** > *File* > *Swift Packages* > *Update to Latest Package Versions* | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
This source file is part of the Swift.org open source project | ||
|
||
Copyright (c) 2021 Apple Inc. and the Swift project authors | ||
Licensed under Apache License v2.0 with Runtime Library Exception | ||
|
||
See http://swift.org/LICENSE.txt for license information | ||
See http://swift.org/CONTRIBUTORS.txt for Swift project authors | ||
*/ | ||
|
||
@_exported import OrderedCollections | ||
@_exported import TSCBasic | ||
// override TSC versions until deprecated | ||
// TODO: remove once TSC removes these | ||
public typealias OrderedSet = OrderedCollections.OrderedSet | ||
public typealias OrderedDictionary = OrderedCollections.OrderedDictionary | ||
Comment on lines
+11
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a much cleaner solution than what I did in #3533. Just one question, though: Since there are only a few files that use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh, I totally missed #3533. sorry about that!
I dont believe so |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
See http://swift.org/CONTRIBUTORS.txt for Swift project authors | ||
*/ | ||
|
||
import TSCBasic | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we should be removing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what I did here was to replace the direct import on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I kinda feel like that could make it harder to remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is #3595 better? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yah, I think I prefer that approach. |
||
import class Foundation.FileManager | ||
|
||
// MARK: - user level | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,6 @@ | |
*/ | ||
|
||
import Foundation | ||
|
||
import TSCBasic | ||
import TSCUtility | ||
|
||
/// SQLite backed persistent cache. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
*/ | ||
|
||
import Basics | ||
import TSCBasic | ||
import Foundation | ||
@_implementationOnly import SwiftDriver | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ import Basics | |
import Build | ||
import PackageGraph | ||
import SPMBuildCore | ||
import TSCBasic | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By a rough count, there are about 10% of changes to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. exactly, this is why I ended up doing together since it would anyways be a huge (# of files) PR |
||
import TSCUtility | ||
|
||
extension BuildSubset { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be list number 6, instead of 5