diff options
| author | 2022-07-22 18:55:24 -0400 | |
|---|---|---|
| committer | 2022-07-22 15:55:24 -0700 | |
| commit | db51f285f8786c3c4a11b75cc09e6c193b4398b5 (patch) | |
| tree | 4c8e8a06b0cec8e674d69cdaadff584868600ebf /src/install | |
| parent | 8392a86300ace40c4effd91533ca8e887eec6f72 (diff) | |
| download | bun-db51f285f8786c3c4a11b75cc09e6c193b4398b5.tar.gz bun-db51f285f8786c3c4a11b75cc09e6c193b4398b5.tar.zst bun-db51f285f8786c3c4a11b75cc09e6c193b4398b5.zip | |
`bun install` use custom BUN_CONFIG_REGISTRY port (#823)
Diffstat (limited to 'src/install')
| -rw-r--r-- | src/install/install.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install/install.zig b/src/install/install.zig index 8ae032022..6c00ffe76 100644 --- a/src/install/install.zig +++ b/src/install/install.zig @@ -199,7 +199,7 @@ const NetworkTask = struct { scope: *const Npm.Registry.Scope, loaded_manifest: ?Npm.PackageManifest, ) !void { - this.url_buf = try std.fmt.allocPrint(allocator, "{s}://{s}/{s}/{s}", .{ scope.url.displayProtocol(), scope.url.displayHostname(), strings.trim(scope.url.path, "/"), name }); + this.url_buf = try std.fmt.allocPrint(allocator, "{s}://{s}:{d}/{s}/{s}", .{ scope.url.displayProtocol(), scope.url.displayHostname(), scope.url.getPortAuto(), strings.trim(scope.url.path, "/"), name }); var last_modified: string = ""; var etag: string = ""; if (loaded_manifest) |manifest| { |
