fix!: do not lookup cwd in which (#9691)

* do not lookup cwd in which

* fix webkit submodule

* fix compilation on linux

* feedback
This commit is contained in:
dave caruso
2024-03-29 16:42:17 -07:00
committed by GitHub
parent a9804a3a11
commit 4869ebff24
16 changed files with 74 additions and 88 deletions

View File

@@ -716,7 +716,6 @@ pub const StandaloneModuleGraph = struct {
if (bun.which(
&whichbuf,
bun.getenvZ("PATH") orelse return error.FileNotFound,
"",
bun.argv()[0],
)) |path| {
return bun.toFD((try std.fs.cwd().openFileZ(path, .{})).handle);