aboutsummaryrefslogtreecommitdiff
path: root/src/install/install.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-17feat(cli): Support `HTTPS_PROXY`, `HTTP_PROXY`, and `NO_PROXY` #1440 (#1814)Gravatar Ciro Spaciari 1-22/+11
* WIP: http_proxy implemented, first steps for https_proxy #1440 * add HTTP_PROXY support to upgrade_command and WIP: tunneling * WIP async handshake, stuck on WANT_READ, try to defer + check * create and upgrade with proxy working, TLS and non-TLS to proxy TLS working * bun install/upgrade/create working with http(s)_proxy #1440 * add NO_PROXY support #1440 * remove commented code and add TODO * fix getHttpProxy no_proxy * fix formatting * refactor catch and getHttpProxy, fix empty strngs in env for proxy * allow optimization for handleResponseBody
2023-01-16Fix `getFdPath` when `/proc/fd` is not mountedGravatar Jarred Sumner 1-5/+5
2023-01-14support installation of NPM workspaces (#1764)Gravatar Alex Lam S.L 1-55/+107
2023-01-13move more thingsGravatar Jarred SUmner 1-5/+5
2023-01-13Split some things into more files and use bun namespace instead of import moreGravatar Jarred SUmner 1-1/+1
2022-12-30More assertionsGravatar Jarred Sumner 1-1/+4
2022-12-30Fix crash with `bun install <foo>`Gravatar Jarred Sumner 1-18/+26
2022-12-29Fix broken hardlink installsGravatar Jarred SUmner 1-1/+1
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-160/+166
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-12-26[install] specify `auth-type` (#1667)Gravatar Alex Lam S.L 1-24/+28
2022-12-26[install] use specified base URL as default fallback within scopes (#1665)Gravatar Alex Lam S.L 1-28/+83
2022-12-25[install] use default URL when only auth token is specified (#1664)Gravatar Alex Lam S.L 1-23/+122
Previously it would default to `http://localhost/` which was inconsistent with the case sans token. Use official `npm` registry as fallback in both cases.
2022-12-22add romeGravatar Jarred Sumner 1-0/+1
2022-12-19New subcommand: `bunx` (#1634)Gravatar Jarred Sumner 1-117/+136
* Implement `bunx` * copy cleanup Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-15[bun run] Introduce `--bun` flag to run in bun instead of nodeGravatar Jarred Sumner 1-0/+2
2022-12-12fix fallback install methodGravatar Dylan Conway 1-1/+4
2022-12-09Add `"bun"` to listGravatar Jarred Sumner 1-14/+1
2022-12-06Fix glibc symbol version issues preventing `bun install` from being used in ↵Gravatar Jarred Sumner 1-8/+5
older glibc versions (#1580) * Prevent integer overflow in connectError * Add missing deepEquals() type to Bun * fix missing glibc symbols * Fix missing symbol issues * Try this * Update glibc-versions-hack.cpp * Update glibc-versions-hack.cpp * Update glibc-versions-hack.cpp Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-04Mildly faster startup timeGravatar Jarred Sumner 1-7/+7
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-12/+12
2022-11-20Print a countGravatar Jarred Sumner 1-4/+4
2022-11-08Install optional dependencies for auto-installGravatar Jarred Sumner 1-12/+27
2022-11-07clean up some reliability issues with automatic installGravatar Jarred Sumner 1-11/+11
2022-11-06Automatically install npm packages when running a script in Bun's runtime ↵Gravatar Jarred Sumner 1-199/+971
(#1459) * Update bundler.zig * WIP * Update README.md * Update README.md * wip * Support running scripts without package.json * Add `--no-auto-install` and `--prefer-offline` flags * WIP * wip * Update headers-handwritten.h * WIP * Build fixes * Fix UAF * Update install.zig * Must call .allocate() * Micro-optimization: only call .timestamp() once per tick when installing packages * Support progress bar * Extend the timestamp for package staleness checks to 1 day * Add `--prefer-latest`, `-i` CLI Flags * Fix crash * Support line text manually being set on an Error instance * Add a few more fields for error messages * Fix bug when counting 8 character strings in string builder * Implement error handling for automatic package installs! * Fix crash * Make it say module when there's a slash * Update module_loader.zig * Ban dependency versions in import specifiers when a package.json is present * Remove unused field * Update README.md * Update README.md * Update README.md * Update README.md Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-10-23Preserve trailing newline when updating package.jsonGravatar Jarred Sumner 1-0/+8
Fixes https://github.com/oven-sh/bun/issues/1375
2022-10-19Cache dir loader: Prefer `$BUN_INSTALL` and `$XDG_CACHE_HOME` to `$HOME`. ↵Gravatar Lucas Garron 1-5/+5
(#1351) This partially addresses https://github.com/oven-sh/bun/issues/696 , by using `$XDG_CACHE_HOME` for those of us who already have that env var set.
2022-10-08fix: install error when node_modules already in npm package (#1301)Gravatar zhiyuan 1-0/+2
2022-09-17Fix crash when specifying same package name twice in `bun add`Gravatar Jarred Sumner 1-2/+7
Fixes https://github.com/oven-sh/bun/issues/1202
2022-09-16[bun install] Remove spinloopGravatar Jarred Sumner 1-26/+11
2022-09-16Make new HTTP client more stableGravatar Jarred Sumner 1-4/+2
2022-09-11New HTTP client (#1231)Gravatar Jarred Sumner 1-10/+14
* wip * It mostly works! * Support `bun install` * Support `bun create` * Support chunked transfer encoding * Handle Keep Alive when redirecting to a different domain Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-13Improve event loop reliability on LinuxGravatar Jarred SUmner 1-10/+39
2022-08-10[bun unlink] Partially implementGravatar Jarred Sumner 1-3/+125
2022-08-08fix compiling error on linux (#1027)Gravatar Zilin Zhu 1-1/+2
2022-08-08refactor(src/install): clap readability fixes (#1024)Gravatar Ryan Russell 1-6/+6
Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-08-07[bun install] Increase "slow filesystem detected" noticeGravatar Jarred Sumner 1-1/+1
2022-08-07[bun install] Implement `bun link`Gravatar Jarred Sumner 1-15/+456
2022-08-07[bun install] Implement `symlink` backendGravatar Jarred Sumner 1-49/+200
Fixes https://github.com/oven-sh/bun/issues/1017
2022-08-05[bun install] Support private registries & private scopesGravatar Jarred Sumner 1-20/+38
2022-08-03[bun install] Include scripts when lockfile doesn't changeGravatar Jarred Sumner 1-1/+1
2022-08-03[bun install] Support lifecycle hooks for cwd's package.jsonGravatar Jarred Sumner 1-1/+95
`bun install` will now run prepare & install `"scripts"` for the root package.json (not dependencies) This makes things like `husky` work and possibly `patch-package`
2022-07-22[bun install] Fix issue with URL path when sending requestGravatar Jarred Sumner 1-1/+55
2022-07-22`bun install` use custom BUN_CONFIG_REGISTRY port (#823)Gravatar SheetJSDev 1-1/+1
2022-07-17[bun install] Implement `--no-verify` flag to skip verifying integrity of ↵Gravatar Jarred Sumner 1-2/+16
downloaded packages
2022-07-17[bun install] Rename `skip_verify` -> `skip_verify_installed_version_number`Gravatar Jarred Sumner 1-8/+8
2022-07-17[bun install] Implement `--no-progress` to disable the progress barGravatar Jarred Sumner 1-1/+35
2022-07-17fix scoped packages name resolution (#760)Gravatar Alexander Kuznetsov 1-2/+8
2022-07-12[bun install] Handle case that should really never happenGravatar Jarred Sumner 1-10/+12
2022-07-12[bun install] Fix NotSameFileSystem error (for real this time)Gravatar Jarred Sumner 1-3/+6
2022-07-11Revert "Fix: NotSameFileSystem at clonefile (#546)" (#581)Gravatar Jarred Sumner 1-1/+1
This reverts commit 2659febd1b74e8215ff7dbfb2d1b19f4b4f8a71a.