Skip to content
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

Remove experimental prefix from Swift SDK command #7507

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Apr 26, 2024

Since SE-0387 was accepted and available in Swift 5.9 and Swift 5.10, it's time to remove experimental prefix.

@MaxDesiatov MaxDesiatov added cross-compilation cmake Changes related to CMake configuration command-line interface labels Apr 26, 2024
@MaxDesiatov MaxDesiatov self-assigned this Apr 26, 2024
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) April 26, 2024 17:56
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov merged commit 71a722c into main Apr 26, 2024
5 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/graduate-swift-sdks branch April 26, 2024 20:59
@MaxDesiatov
Copy link
Contributor Author

@bnbarham @euanh @kateinoigakukun do you think it's worth keeping old subcommand and argument and make them show a deprecation warning for backwards compatibility?

@bnbarham
Copy link
Contributor

Yeah I think that'd be nice as long as we hide it from help in general.

@kateinoigakukun
Copy link
Member

Also, it might be a good timing to refine CLI option consistency with others.
e.g.

  • swift package plugin --list / swift sdk list
  • swift package config / swift sdk configuration

@MaxDesiatov
Copy link
Contributor Author

Not sure about that one, might require a proposal amendment as we've specified commands and their behavior explicitly in the proposal text.

@kateinoigakukun
Copy link
Member

@MaxDesiatov Ok, I created a proposal amendment swiftlang/swift-evolution#2424

@MaxDesiatov
Copy link
Contributor Author

IIUC amendments go through the same process as the rest of Swift Evolution. What I mean is that we'd probably have to run this as a pitch first, schedule this for review with the Swift Evolution stakeholders if there's enough positive feedback on the pitch, then run a formal review and follow on the review decision after that.

@kateinoigakukun
Copy link
Member

kateinoigakukun commented Apr 28, 2024

Given that this is a non-functional and just a naming change, I feel going through the evolution process is too much for this change TBH... But I can follow the process if it's really necessary. I'd like to hear @bnbarham's opinion here.

@bnbarham
Copy link
Contributor

Given that this is a non-functional and just a naming change, I feel going through the evolution process is too much for this change TBH... But I can follow the process if it's really necessary. I'd like to hear @bnbarham's opinion here.

It'd be worth posting in Evolution | Discussions and seeing if the core team feels a review is required. Interestingly the proposal actually has configure and not configuration, so either way we probably want to do something here.

@MaxDesiatov MaxDesiatov restored the maxd/graduate-swift-sdks branch April 30, 2024 11:37
MaxDesiatov added a commit that referenced this pull request May 1, 2024
…ounterparts (#7515)

Cherry-pick of #7512, #7507, and #7517.

**Explanation**: Since
[SE-0387](https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md)
was accepted and available in Swift 5.9 and Swift 5.10, it's time to
deprecate relevant CLI with the `experimental` prefix. There are enough
users of this command and corresponding options on `swift build` in the
wild, which means those should be deprecated first before removing.
**Scope**: isolated to `swift sdk` command and 2 Swift SDK options on
`swift build`.
**Risk**: low, these commands options have no impact on `swift build`
outside of cross-compilation use cases.
**Testing**: added new end-to-end tests in `SDKCommandTests` in
#7517 cherry-picked
here.
**Issue**: N/A
**Reviewer**: @bnbarham
@MaxDesiatov MaxDesiatov deleted the maxd/graduate-swift-sdks branch May 2, 2024 11:38
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
Since
[SE-0387](https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md)
was accepted and available in Swift 5.9 and Swift 5.10, it's time to
remove `experimental` prefix.
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
Since
[SE-0387](https://github.com/apple/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md)
was accepted and available in Swift 5.9 and Swift 5.10, it's time to
remove `experimental` prefix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants