-
Notifications
You must be signed in to change notification settings - Fork 2
set concurrency to 1 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ npm-debug.log | |
| /node_modules | ||
| /example/installed | ||
| /example/data | ||
| .idea/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,7 @@ const rollupPluginJson = require('rollup-plugin-json'); | |
| const watchr = require('watchr'); | ||
| const cryptoutils = require('cryptoutils'); | ||
| const MultiMutex = require('multimutex'); | ||
| var bluebird = require('bluebird'); | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we avoid this bluebird dependency? This seems a huge thing to use when the equivalent promise looper is probably 5 lines of code. Also we have the multimutex module already included, which solves this exact concurrency problem. |
||
|
|
||
| const defaultConfig = { | ||
| hostname: 'archae', | ||
|
|
@@ -1163,7 +1164,7 @@ class ArchaeInstaller { | |
| } | ||
| }; | ||
| const _npmInstall = (modules, moduleNames, cb) => { | ||
| Promise.all(modules.map((module, index) => { | ||
| bluebird.map(modules, (module, index) => { | ||
| const moduleName = moduleNames[index]; | ||
|
|
||
| const _ensureNodeModules = (module, moduleName) => new Promise((accept, reject) => { | ||
|
|
@@ -1259,7 +1260,7 @@ class ArchaeInstaller { | |
| return _ensureNodeModules(module, moduleName) | ||
| .then(() => _install(module, moduleName)) | ||
| .then(() => _build(module, moduleName)); | ||
| })) | ||
| }, {concurrency: 1}) | ||
| .then(() => { | ||
| cb(); | ||
| }) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,9 +7,10 @@ | |
| }, | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The npm version probably needs to change to please package manager and deployment systems. |
||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/modulesio/archae.git" | ||
| "url": "https://github.com/toomu/archae.git" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was it deliberate to take over the repo in npm?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I dont have permissions to write to https://github.com/modulesio/archae.git . Thought that implied I need to fork it to make the changes
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, but with this change the whole repo would point to If this is for testing, it probably shouldn't be committed, or at least should not be part of a PR. Though I'm not quite sure how this helps in testing in the first place... |
||
| }, | ||
| "dependencies": { | ||
| "bluebird": "3.5.0", | ||
| "autows": "0.0.5", | ||
| "cryptoutils": "0.0.7", | ||
| "etag": "^1.8.0", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seemingly has nothing to do with setting concurrency to 1, so it shouldn't be in this PR right?