aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-09 16:09:11 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-09 16:10:33 -0800
commit79138c4c7cb72a5f84c9a81720a73d283d78b1be (patch)
treec12e1f341edb58c8293d696bef949a7358d341a2
parent24fbcb8f5297944f9829a3953f6a3e6e56cb02a0 (diff)
downloadbun-79138c4c7cb72a5f84c9a81720a73d283d78b1be.tar.gz
bun-79138c4c7cb72a5f84c9a81720a73d283d78b1be.tar.zst
bun-79138c4c7cb72a5f84c9a81720a73d283d78b1be.zip
Add `"bun"` to list
-rw-r--r--src/install/install.zig15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/install/install.zig b/src/install/install.zig
index cb5a350ca..fced43427 100644
--- a/src/install/install.zig
+++ b/src/install/install.zig
@@ -3461,7 +3461,6 @@ pub const PackageManager = struct {
dry_run: bool = false,
remote_package_features: Features = Features{ .peer_dependencies = false, .optional_dependencies = true },
local_package_features: Features = Features{ .peer_dependencies = false, .dev_dependencies = true },
- allowed_install_scripts: []const PackageNameHash = &default_allowed_install_scripts,
// The idea here is:
// 1. package has a platform-specific binary to install
// 2. To prevent downloading & installing incompatible versions, they stick the "real" one in optionalDependencies
@@ -3487,19 +3486,7 @@ pub const PackageManager = struct {
const default_native_bin_link_allowlist = [_]PackageNameHash{
String.Builder.stringHash("esbuild"),
String.Builder.stringHash("turbo"),
- };
-
- const install_scripts_package_count = 5;
- const default_allowed_install_scripts: [install_scripts_package_count]PackageNameHash = brk: {
- const names = std.mem.span(@embedFile("install-scripts-allowlist.txt"));
- var hashes: [install_scripts_package_count]PackageNameHash = undefined;
- var splitter = std.mem.split(u8, names, "\n");
- var i: usize = 0;
- while (splitter.next()) |item| {
- hashes[i] = String.Builder.stringHash(item);
- i += 1;
- }
- break :brk hashes;
+ String.Builder.stringHash("bun"),
};
pub const LogLevel = enum {