Open twilson63 opened 9 years ago
In the /routes/index.js file on L115 we need to modify the request to leverage the gitlab tarball url:
// TODO: Change this to gitlab url // http://gitlab.eirenerx.com/<user>/<repo>/repository/archive.tar.gz?ref=<tag> var tarball_url = gitlab_uri + '/repos/' + user + '/' + repo + '/tarball/' + tag; debug('proxy tarball', tarball_url); var options = { url: tarball_url, headers: { 'User-Agent': 'npm-github-proxy', } };
This should enable the npm cli to grab the tarball from gitlab and deploy as if pulling it from npm.
+1
In the /routes/index.js file on L115 we need to modify the request to leverage the gitlab tarball url:
This should enable the npm cli to grab the tarball from gitlab and deploy as if pulling it from npm.