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

Use executableURL in build script #337

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

Conversation

dfed
Copy link
Collaborator

@dfed dfed commented Feb 21, 2025

Existing API was deprecated

@dfed dfed requested a review from bmaddox February 21, 2025 02:32
@dfed dfed self-assigned this Feb 21, 2025
@@ -6,7 +6,7 @@ import Foundation

func execute(commandPath: String, arguments: [String]) throws {
let task = Process()
task.launchPath = commandPath
task.executableURL = .init(filePath: commandPath)
task.arguments = arguments
print("Launching command: \(commandPath) \(arguments.joined(separator: " "))")
task.launch()
Copy link
Collaborator

Choose a reason for hiding this comment

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

launch() is also deprecated. Could this be replaced with try task.run()?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh snap. yeah let me take a pass at this. thanks for the call out!

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.

2 participants