mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
Make --linker=isolated the default for bun install (#23311)
### What does this PR do? Makes isolated installs the default install strategy for projects with workspaces in Bun v1.3. Also fixes creating patches with `bun patch` and `--linker isolated` Fixes #22693 ### How did you verify your code works? Added tests for node_modules renaming `bun patch` with isolated install. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -540,10 +540,10 @@ pub const StandaloneModuleGraph = struct {
|
||||
|
||||
pub fn inject(bytes: []const u8, self_exe: [:0]const u8, inject_options: InjectOptions, target: *const CompileTarget) bun.FileDescriptor {
|
||||
var buf: bun.PathBuffer = undefined;
|
||||
var zname: [:0]const u8 = bun.span(bun.fs.FileSystem.instance.tmpname("bun-build", &buf, @as(u64, @bitCast(std.time.milliTimestamp()))) catch |err| {
|
||||
var zname: [:0]const u8 = bun.fs.FileSystem.tmpname("bun-build", &buf, @as(u64, @bitCast(std.time.milliTimestamp()))) catch |err| {
|
||||
Output.prettyErrorln("<r><red>error<r><d>:<r> failed to get temporary file name: {s}", .{@errorName(err)});
|
||||
return bun.invalid_fd;
|
||||
});
|
||||
};
|
||||
|
||||
const cleanup = struct {
|
||||
pub fn toClean(name: [:0]const u8, fd: bun.FileDescriptor) void {
|
||||
|
||||
Reference in New Issue
Block a user