Skip to content

Commit 1b57766

Browse files
committed
Make version changes for the main branch, and add upgrade path
1 parent 3ada49c commit 1b57766

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Sources/Swiftly/Init.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ internal struct Init: SwiftlyCommand {
4040
if var config, !overwrite &&
4141
(
4242
config.version == SwiftlyVersion(major: 0, minor: 4, patch: 0, suffix: "dev") ||
43-
config.version == SwiftlyVersion(major: 0, minor: 4, patch: 0)
43+
config.version == SwiftlyVersion(major: 0, minor: 4, patch: 0) ||
44+
config.version.major == 1 && config.version.minor == 0
4445
)
4546
{
46-
// This is a simple upgrade from the 0.4.0-dev pre-release, or 0.4.0 release
47+
// This is a simple upgrade from the 0.4.0 pre-releases, or 1.x
4748

4849
// Move our executable over to the correct place
4950
try Swiftly.currentPlatform.installSwiftlyBin()

Sources/SwiftlyCore/SwiftlyCore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public let version = SwiftlyVersion(major: 1, minor: 0, patch: 0)
3+
public let version = SwiftlyVersion(major: 1, minor: 1, patch: 0, suffix: "-dev")
44

55
/// A separate home directory to use for testing purposes. This overrides swiftly's default
66
/// home directory location logic.

0 commit comments

Comments
 (0)