-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Disable SwiftVersion development mode #8074
Disable SwiftVersion development mode #8074
Conversation
Please create a pull request on |
06a0b55
to
09b8a4e
Compare
@swift-ci please test |
09b8a4e
to
5aebb5f
Compare
@swift-ci please test |
XCTAssertMatch(ws.interpreterFlags(for: foo), [.equal("-swift-version"), .equal("6")]) | ||
XCTAssertMatch( | ||
ws.interpreterFlags(for: foo), | ||
(SwiftVersion.current.isDevelopment) ? [.equal("-swift-version"), .equal("6")] : [] |
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.
question: instead of setting the expected value based on SwiftVersion.current.isDevelopment
, should we instead modify line 208 to use a specific // swift-tools-version:5.10
, or whichever version it's supposed to be?
@swift-ci please test Windows platform |
Motivation:
Running
swift package --version
indicate it is in development mode, whileswift --release
does not.Modifications:
Toggling
isDevelopment
boolean tofalse
inSwiftVersion
struct extension.Result: