mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
fix(install): lifecycle script changes (#8943)
* empty trustedDependencies * tests * handle edgecases with default trusted dependencies * could be zero length * --trusted and skipped scripts * resolver too * second run --trusted * --trust, better formatting * more tests * --trusted applies to dep deps, more tests * progress * fix build * fix crash, make it look good, comments * alphabetize, verbose log * feature flag * update lockfile * update skipped text * check update requests first * be more careful with inline strings * only with scripts * fix tests, todo tests * fix another test * fix merge * fix fix merge * check binding.gyp for tarball and git resolutions * remove dead code * debug assert * move newline printing * use enum for `__has_install_script` * oops * clone packages * Update src/install/install.zig Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
@@ -258,6 +258,18 @@ fn HashMapMixin(
|
||||
return self.hasContext(key, undefined);
|
||||
}
|
||||
|
||||
pub fn hasWithHash(self: *Self, key_hash: u64) bool {
|
||||
assert(key_hash != Self.empty_hash);
|
||||
|
||||
for (self.entries[key_hash >> self.shift ..]) |entry| {
|
||||
if (entry.hash >= key_hash) {
|
||||
return entry.hash == key_hash;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
pub fn hasContext(self: *Self, key: K, ctx: Context) bool {
|
||||
const hash = ctx.hash(key);
|
||||
assert(hash != Self.empty_hash);
|
||||
|
||||
Reference in New Issue
Block a user