Skip to content

[5.9] Fix macOS build issues #419

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 2 commits into from
May 15, 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
7 changes: 1 addition & 6 deletions Tests/TSCBasicTests/ProcessTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -466,12 +466,7 @@ class ProcessTests: XCTestCase {

fileprivate extension Process {
private static func env() -> [String:String] {
var env = ProcessEnv.vars
#if os(macOS)
// Many of these tests use Python which might not be in the default `PATH` when running these tests from Xcode.
env["PATH"] = "\(env["PATH"] ?? ""):/usr/local/bin"
#endif
return env
return ProcessEnv.vars
}

private static func script(_ name: String) -> String {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import sys

Expand Down
2 changes: 1 addition & 1 deletion Tests/TSCBasicTests/processInputs/in-to-out
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import sys

Expand Down
2 changes: 1 addition & 1 deletion Tests/TSCBasicTests/processInputs/long-stdout-stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import sys

Expand Down
2 changes: 1 addition & 1 deletion Tests/TSCBasicTests/processInputs/simple-stdout-stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import sys

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.