mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
Disable bun patch in release builds until #11719 is fixed
cc @zackradisic
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
const bun = @import("root").bun;
|
||||
const Command = @import("../cli.zig").Command;
|
||||
const PackageManager = @import("../install/install.zig").PackageManager;
|
||||
|
||||
pub const PatchCommand = struct {
|
||||
pub fn exec(ctx: Command.Context) !void {
|
||||
if (!bun.FeatureFlags.is_patch_cmd_enabled) {
|
||||
bun.Output.prettyErrorln("bun patch is not available in this version of bun. Stay tuned.", .{});
|
||||
bun.Global.exit(1);
|
||||
}
|
||||
|
||||
try PackageManager.patch(ctx);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
const Command = @import("../cli.zig").Command;
|
||||
const PackageManager = @import("../install/install.zig").PackageManager;
|
||||
const bun = @import("root").bun;
|
||||
|
||||
pub const PatchCommitCommand = struct {
|
||||
pub fn exec(ctx: Command.Context) !void {
|
||||
if (!bun.FeatureFlags.is_patch_cmd_enabled) {
|
||||
bun.Output.prettyErrorln("bun patch is not available in this version of bun. Stay tuned.", .{});
|
||||
bun.Global.exit(1);
|
||||
}
|
||||
|
||||
try PackageManager.patchCommit(ctx);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -179,3 +179,5 @@ pub const breaking_changes_1_2 = false;
|
||||
// order than via Bun.file.writer() so we turn it off until there's a unified,
|
||||
// buffered writer abstraction shared throughout Bun
|
||||
pub const nonblocking_stdout_and_stderr_on_posix = false;
|
||||
|
||||
pub const is_patch_cmd_enabled = env.is_canary or env.isDebug;
|
||||
|
||||
Reference in New Issue
Block a user