Skip to content

Disable development mode for 5.9 branch #6474

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

Merged
merged 1 commit into from
Apr 25, 2023
Merged
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:999.0.0
// swift-tools-version:5.8.0

import PackageDescription

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 999.0
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
Expand Down
2 changes: 1 addition & 1 deletion Sources/Basics/SwiftVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ extension SwiftVersion {
/// The current version of the package manager.
public static let current = SwiftVersion(
version: (5, 9, 0),
isDevelopment: true,
isDevelopment: false,
buildIdentifier: getBuildIdentifier()
)
}
Expand Down
2 changes: 2 additions & 0 deletions Tests/BuildTests/BuildPlanTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ final class BuildPlanTests: XCTestCase {
}

func testPackageNameFlag() throws {
try XCTSkipIf(!SwiftVersion.current.isDevelopment, "test needs tools-version 999.0")
let isFlagSupportedInDriver = try driverSupport.checkToolchainDriverFlags(flags: ["package-name"], toolchain: UserToolchain.default, fileSystem: localFileSystem)
try fixture(name: "Miscellaneous/PackageNameFlag") { fixturePath in
let (stdout, _) = try executeSwiftBuild(fixturePath.appending("appPkg"), extraArgs: ["-v"])
Expand All @@ -559,6 +560,7 @@ final class BuildPlanTests: XCTestCase {
}

func testTargetGroupToPackageNameFlag() throws {
try XCTSkipIf(!SwiftVersion.current.isDevelopment, "test needs tools-version 999.0")
let isFlagSupportedInDriver = try driverSupport.checkToolchainDriverFlags(flags: ["package-name"], toolchain: UserToolchain.default, fileSystem: localFileSystem)
try fixture(name: "Miscellaneous/TargetGrouping") { fixturePath in
let (stdout, _) = try executeSwiftBuild(fixturePath.appending("libPkg"), extraArgs: ["-v"])
Expand Down