diff options
author | 2023-04-22 19:44:23 -0700 | |
---|---|---|
committer | 2023-04-22 19:44:23 -0700 | |
commit | 4b24bb464c5a54c728bee8c9b4aa30a60c3fb7d4 (patch) | |
tree | 7983dd2d5ba18f9a6111be2e7e6d17f69d170bba /src/install/lockfile.zig | |
parent | 7d6b5f5358617f92ace6f3103dd835ddff73f92a (diff) | |
download | bun-4b24bb464c5a54c728bee8c9b4aa30a60c3fb7d4.tar.gz bun-4b24bb464c5a54c728bee8c9b4aa30a60c3fb7d4.tar.zst bun-4b24bb464c5a54c728bee8c9b4aa30a60c3fb7d4.zip |
Make `Bun.build` more reliable (#2718)
* One possible implementation to make `Bun.build` work better
* Pass allocator in
* Make our temporary buffers a little safer
* rename
* Fix memory corruption in symbol table
* Add support for deferred idle events in ThreadPool
* Free more memory
* Use a global allocator FS cache
* more `inline`
* Make duping keys optional in StringMap
* Close file handles more often
* Update router.zig
* wip possibly delete this commit
* Fix memory issues and reduce memory usage
* > 0.8
* Switch to AsyncIO.Waker and fix memory leak in JSBundleCompletionTask
* We don't need to clone this actually
* Fix error
* Format
* Fixup
* Fixup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to '')
-rw-r--r-- | src/install/lockfile.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/install/lockfile.zig b/src/install/lockfile.zig index 86ad1ac54..ea1c4fcf8 100644 --- a/src/install/lockfile.zig +++ b/src/install/lockfile.zig @@ -854,7 +854,7 @@ pub const Printer = struct { if (lockfile_path.len > 0 and lockfile_path[0] == std.fs.path.sep) std.os.chdir(std.fs.path.dirname(lockfile_path) orelse "/") catch {}; - _ = try FileSystem.init1(allocator, null); + _ = try FileSystem.init(null); var lockfile = try allocator.create(Lockfile); @@ -918,7 +918,7 @@ pub const Printer = struct { }; env_loader.loadProcess(); - try env_loader.load(&fs.fs, &entries_option.entries, false); + try env_loader.load(&fs.fs, entries_option.entries, false); var log = logger.Log.init(allocator); try options.load( allocator, |