Skip to content

Commit 3f48cb5

Browse files
committed
fix the ACTUAL version of the http_parser
1 parent 0a54f3e commit 3f48cb5

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

lifecycleScripts/retrieveExternalDependencies.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ module.exports = function retrieveExternalDependencies() {
1919
tar = require("tar");
2020
request = require("request");
2121
return Promise.all([
22-
getVendorLib("libgit2", "https://github.com/libgit2/libgit2/tarball/" + pkg.libgit2.sha),
23-
getVendorLib("libssh2", pkg.libssh2.url),
24-
getVendorLib("http_parser", pkg.http_parser.url)
22+
getVendorLib("libgit2"),
23+
getVendorLib("libssh2"),
24+
getVendorLib("http_parser")
2525
])
2626
};
2727

2828

29-
function getVendorLib(name, url) {
29+
function getVendorLib(name) {
3030
var vendorPath = "vendor/" + name + "/";
3131
var vendorPackage = pkg[name];
3232
if (NODE_VERSION === 0.1 && vendorPackage["0.10"]) {
@@ -63,7 +63,7 @@ function getVendorLib(name, url) {
6363
strip: true
6464
});
6565

66-
request.get(url)
66+
request.get(vendorPackage.url)
6767
.pipe(zlib.createUnzip())
6868
.pipe(extract)
6969
.on("error", reject)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "Node.js libgit2 asynchronous native bindings",
44
"version": "0.2.7",
55
"libgit2": {
6+
"url": "https://github.com/libgit2/libgit2/tarball/d853fb9f24e0fe63b3dce9fbc04fd9cfe17a030b",
67
"sha": "d853fb9f24e0fe63b3dce9fbc04fd9cfe17a030b",
78
"version": "0.21.5"
89
},

0 commit comments

Comments
 (0)