aboutsummaryrefslogtreecommitdiff
path: root/src/install (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-10-13fix installing dependencies that match workspace versions (#6494)Gravatar Dylan Conway 2-2/+4
* check if dependency matches workspace version * test * Update lockfile.zig * set resolution to workspace package id
2023-10-13fix lockfile struct padding (#6495)Gravatar Dylan Conway 3-3/+18
* integrity padding * error message for bytes at end of struct
2023-10-12Upgrade zig to 0.12.0-dev.888+130227491 (#6471)Gravatar dave caruso 1-2/+2
* update build.zig * save * works? * better workaround * fix install * Fix compiler crash
2023-10-12fix editing package json when adding github dependency (#6432)Gravatar Dylan Conway 1-1/+0
* fix package name added to package json * check for github tag * remove alloc * some tests * fix test
2023-10-12fix(install): re-evaluate overrides when removedbun-v1.0.6Gravatar dave caruso 1-2/+20
2023-10-12feat(install): support npm overrides/yarn resolutions, one level deep only ↵Gravatar dave caruso 3-22/+465
(#6435) * disable zig fmt on generated ResolvedSourceTag.zig * overrides * it works * ok * a --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-10-11fix #6416 (#6430)Gravatar Dylan Conway 1-1/+8
* make sure latest is checked after prerelease * test and fix * test for when latest matches prerelease
2023-10-11feat(install): automatically migrate package-lock.json to bun.lockb (#6352)bun-v1.0.5Gravatar dave caruso 7-244/+1663
* work so far * stuff * a * basics work * stuff * yoo * build lockfile * correct * f * a * install fixture havent tested * i made it worse * lol * be more reasonable * make the test easier to pass because bun install doesn't handle obscure lockfile edge cases :/ * a * works now * ok * a * a * cool * nah * fix stuff * l * a * idfk * LAME * prettier errors * does this fix tests? * Add more safety checks to Integrity * Add another check * More careful lifetime handling * Fix linux debugger issue * a * tmp dir and snapshot test --------- Co-authored-by: Jarred SUmner <jarred@jarredsumner.com>
2023-10-10Fix lifecycle scripts not running on reinstallation (#6376)Gravatar Arden Sinclair 1-0/+38
* Include trusted dependencies in lockfile * Add a remote dependency to lifecycle script test
2023-10-10make peer dependencies install by default (#6396)Gravatar Dylan Conway 2-14/+124
* peer dependencies * default true * add test * cleanup * some tests * skip peer deps if they are non optional * remove debug print, fix build * iterate peer dependencies
2023-10-05Use singular nouns when appropriate on install messages (#2543)Gravatar Jake Boone 1-8/+12
* Use singular nouns when appropriate on install messages * Fix one more pluralization * Fix bun-add tests for "1 package installed" * Fix bun install/remove/update tests for "1 package installed"
2023-10-05fix printing latest available versionGravatar Dylan Conway 2-5/+14
2023-10-04fix semver and repository host bugs (#6312)Gravatar Dylan Conway 3-16/+63
* releases before prereleases * handle different repo hosts * remove log * Update bun-install.test.ts * test for `bun add` * gitlab test * use comptime hash map, another test case * don't need length * bump timeout, use tld * infer git dependencies for https and ssh
2023-10-03Fix bunx command for github package #5974 (#6042)Gravatar axel escalada 1-1/+6
* fix bunx command for github package * refactor fmt package to use it when the path is seted * use labeled block to assign const instead of use 'undefined'
2023-10-03Store workspace package versions (#6258)bun-v1.0.4Gravatar Dylan Conway 2-22/+257
* Store workspace package versions in the lockfile * more logging * wip * keep information from workspace name array and cache * hash key * remove cache, compare workspaces with initially loaded * uncomment sort * remove comments * remove allocation * package json * test `bun add <package>` without workspace prefix * Update test/cli/install/bun-install.test.ts Co-authored-by: Markus Staab <maggus.staab@googlemail.com> --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Markus Staab <maggus.staab@googlemail.com>
2023-10-02Fix `bun install` reading Github API from wrong environment variable (#6247)Gravatar Ashcon Partovi 1-6/+6
* Fix `bun install` reading Github API from wrong environment variable * Update src/install/install.zig --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-10-02more loggingGravatar Jarred Sumner 1-0/+74
2023-10-01Slightly reduce number of open file descriptors in `bun install` (#6219)Gravatar Jarred Sumner 1-12/+15
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-29Fix hang in `bun install` (#6192)Gravatar Jarred Sumner 1-5/+29
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-28Add local tarball install #5812 (#6118)Gravatar axel escalada 2-2/+4
* check if the value passed for add command is a local tarball and install it, test for local tarball * use bunExe() * use absolute path to copy tarball * fmt ts
2023-09-27fix(bun install): Handle vercel and github tarball path dependencies (#6122)Gravatar Justin "J.R." Hill 1-1/+24
* fix(bun install): Handle vercel and github tarball path dependencies * test(bun install): test tarball path with when * Simplify github tarball detection --------- Co-authored-by: bun <noreply@oven.sh>
2023-09-26fix workspace dependency install (#6092)Gravatar Dylan Conway 1-3/+3
* handle `*` * test * always use the package name * more tests * install dependency in each
2023-09-24Correctly fix #5888 (#6000)Gravatar Jarred Sumner 5-49/+89
* Update our MultiArrayList * More consistent CI * Fix serialization issue * Update bun.lockb * Update bun.lockb * fixup * Fix `Bin{}` * `bun update` should not cache the manifest * Make bun install tests more consistent * This differs by platform evidently --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-23fix(lockfile): ensure all bytes of union are initialized before ↵Gravatar Ai Hoshino 1-18/+23
serialization. (#5957)
2023-09-22[install] fix GitHub dependency bugs (#5941)Gravatar Dylan Conway 2-10/+21
* handle branches with slashes * handle empty repo string
2023-09-21disable child_process execArgv + fix crash in cli parsing (#5843)Gravatar dave caruso 1-1/+1
* stuff * stuff --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-20[bun install] Add `-E` as alias of `--exact` (#5104)Gravatar Jonah Snider 1-2/+2
* [bun install] Add `-E` as alias of `--exact` * Add test for -E flag
2023-09-19Show when a newer version is available in the install screen (#5780)Gravatar Jarred Sumner 2-14/+72
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Get artifactory to work (#5744)Gravatar Jarred Sumner 2-7/+61
* Get artifactory to work * Cleanup url normalization a ltitle more * Clean up tests * prettier --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Make bun install --verbose more verbose (#5726)Gravatar Jarred Sumner 1-0/+7
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18Encode slashes in package names in the registry manifest request (#5716)Gravatar Jarred Sumner 2-1/+25
* Encode slashes in package names in the registry manifest request Co-Authored-By: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com> * Update dummy.registry.ts * Fix tests * Add guide for Azure Artifacts * Update azure-artifacts.md * Update azure-artifacts.md * Typo --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Max Brosnahan <1177034+gingermusketeer@users.noreply.github.com>
2023-09-17fix(install): Return NotSupported when errno == XDEV (#5610)Gravatar pan93412 1-0/+2
2023-09-13Remove the ability to configure lockfile. (#5335)Gravatar Nathan Hammond 1-31/+2
2023-09-13chore: make comment grammatically correct (#5140)Gravatar Gareth Jones 1-1/+1
2023-09-12Clean up some edgecases with posix_spawn usage (#5079)Gravatar Jarred Sumner 1-1/+9
* Check that the pid matches * Fixup EINTR check * Remove extra slashes * fixup * fixup * != 0 --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-11add NODE_TLS_REJECT_UNAUTHORIZED (#4829)Gravatar Ciro Spaciari 1-0/+8
2023-09-11fix loading env from `.env.production` and friends (#4630)Gravatar Dylan Conway 2-2/+2
* reload conditional vars * test * change `get` and `put` methods * dont clone empty env variables
2023-09-05fix(install): ensure all lockfile structs do not have undefined padding (#4401)Gravatar dave caruso 5-2/+113
* padding sucks * this assertion is already done elsewhere * remove test. will be covered alex's pr i believe? * fix webkit submodule * fix uws submodule
2023-08-31`bun install` correctly join dependency URLs (#4421)Gravatar Julian 1-53/+38
* use WTF to join registry strings * show dependency error messages, better join error We actually report errors when enqueuing dependencies now. I also made the join URLs error message read better. It'd be cleaner to handle it all in one place, but there's currently no way to propagate the data up. * starting on registry URL tests * added more registry URL tests * [install] prevent optional/peer deps from failing builds Couldn't get the peer dependency test to work, but the code is there. * ran prettier * changed error note to use realname, updated tests * ran prettier again...
2023-08-30fix(install): resolve semver matching with pre-release tags. (#4412)Gravatar Ai Hoshino 1-6/+37
Close: #4398
2023-08-30add life cycle scripts to lockfile metahash (#4420)Gravatar Dylan Conway 1-0/+32
* add life cycle scripts to lockfile metahash * Update lockfile.zig
2023-08-30[install] fix stale root life-cycle script in lockfile (#4411)Gravatar Alex Lam S.L 1-7/+18
fixes #4319
2023-08-28just kernel32 things (#4354)Gravatar Jarred Sumner 5-93/+143
* just kernel32 things * more * Update linux_c.zig * Update windows_c.zig * Add workaround Workaround https://github.com/ziglang/zig/issues/16980 * Rename http.zig to bun_dev_http_server.zig * Rename usages * more * more * more * thanks tigerbeetle * Rename `JSC.Node.Syscall` -> `bun.sys` * more * woops * more! * hmm * it says there are only 37 errors, but that's not true * populate argv * it says 32 errors! * 24 errors * fix regular build * 12 left! * Still 12 left! * more * 2 errors left... * 1 more error * Add link to Tigerbeetle * Fix the remainign error * Fix test timeout * Update syscall.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-26Fix the crash when importing a module that does not exist. (#4348)Gravatar Ai Hoshino 1-0/+6
Close: #4240
2023-08-24fix buildGravatar Dylan Conway 2-4/+4
2023-08-24[install] fix stale life-cycle scripts from lockfile (#4307)Gravatar Alex Lam S.L 3-6/+17
fixes #4269
2023-08-24[install] fix crash when installing package that uses loose semver ↵Gravatar Alex Lam S.L 4-34/+42
pre-release (#4302) - also fix parsing of `1.2.3pre+build` fixes #4266
2023-08-23Bunch of streams fixes (#4251)Gravatar Jarred Sumner 1-2/+2
* Update WebKit * Don't do async hooks things when async hooks are not enabled * Smarter scheduling of event loop tasks with the http server * less exciting approach * Bump WebKit * Another approach * Fix body-stream tests * Fixes #1886 * Fix UAF in fetch body streaming * Missing from commit * Fix leak * Fix the other leak * Fix test * Fix crash * missing duperef * Make this code clearer * Ignore empty chunks * Fixes #3969 * Delete flaky test * Update bun-linux-build.yml * Fix memory issue * fix result body, and .done status before the last callback, dont touch headers after sent once * refactor HTTPClientResult * less flasky corrupted test * oops * fix mutex invalid state * fix onProgressUpdate deinit/unlock * fix onProgressUpdate deinit/unlock * oops * remove verbose * fix posible null use * avoid http null * metadata can still be used onReject after toResponse * dont leak task.http * fix flask tests * less flask close tests --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: cirospaciari <ciro.spaciari@gmail.com>
2023-08-11Deprecate loading `node_modules.bun` (#4131)Gravatar Jarred Sumner 2-2/+2
* Deprecate loading `node_modules.bun` * realpath * regenerate schema * More * more * Update cli.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-08-07implement `bun update` (#4046)Gravatar Alex Lam S.L 2-84/+103
- analogous to `npm update` - `bun update <name>` to refresh specified package under `package.json` - `bun update` to refresh all package to latest versions