Skip to content

Modernize code to not rely on deprecations and old behavior #3095

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AZero13
Copy link
Contributor

@AZero13 AZero13 commented Oct 19, 2021

Use executableURL instead of launchPath

@AZero13 AZero13 changed the title Rename deprecated attributes Fix deprecated attributes Oct 20, 2021
@AZero13
Copy link
Contributor Author

AZero13 commented Oct 21, 2021

cc: @etcwilde

@millenomi
Copy link
Contributor

@swift-ci please test and merge

@AZero13 AZero13 force-pushed the deprecated branch 4 times, most recently from 99647c0 to 31edb2d Compare October 28, 2021 17:47
@AZero13
Copy link
Contributor Author

AZero13 commented Oct 28, 2021

@millenomi Could you please try the command again

@AZero13 AZero13 force-pushed the deprecated branch 6 times, most recently from ab6732a to bfbc332 Compare October 28, 2021 19:11
@millenomi
Copy link
Contributor

@swift-ci please test

@AZero13
Copy link
Contributor Author

AZero13 commented Oct 29, 2021

Thank you

@AZero13 AZero13 changed the title Fix deprecated attributes Modernize code to not rely on deprecations and old behavior Oct 29, 2021
@AZero13 AZero13 force-pushed the deprecated branch 2 times, most recently from 4f3197b to d49c2ba Compare October 29, 2021 15:34
@millenomi
Copy link
Contributor

@swift-ci please test

@AZero13 AZero13 force-pushed the deprecated branch 2 times, most recently from e8ac454 to df8671a Compare November 12, 2021 15:47
@AZero13 AZero13 force-pushed the deprecated branch 2 times, most recently from f9b0e8c to 7b5a16e Compare September 11, 2022 21:35
@AZero13
Copy link
Contributor Author

AZero13 commented Sep 11, 2022

@millenomi Can we try again?

@AZero13 AZero13 force-pushed the deprecated branch 2 times, most recently from 02c23cf to 022c199 Compare September 11, 2022 21:41
@AZero13 AZero13 force-pushed the deprecated branch 3 times, most recently from cf0138f to 3f0e844 Compare September 11, 2022 21:53
@AZero13
Copy link
Contributor Author

AZero13 commented Oct 2, 2022

@parkera @millenomi @etcwilde could we please test and merge

@AZero13
Copy link
Contributor Author

AZero13 commented Oct 2, 2022

@Kyle-Ye fixed!

@parkera
Copy link
Contributor

parkera commented Jul 19, 2024

Closing older PRs after re-core of swift-corelibs-foundation on swift-foundation (#5001).

@@ -1149,7 +1149,11 @@ open class Process: NSObject, @unchecked Sendable {
// convenience; create and launch
open class func launchedProcess(launchPath path: String, arguments: [String]) -> Process {
let process = Process()
process.launchPath = path
if #available(macOS 10.13, *) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With our new approach to swift-corelibs-foundation, it no longer builds for macOS. So, I think in the end this ifdef is not required - we can just always use the URL version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants