Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Migrate to npm workspaces #1394
Migrate to npm workspaces #1394
Changes from 1 commit
3b0e9c0
c9ac88b
d53a25e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
We try to fix our dependencies to specific versions so I think we should do the same here and fix to a specific version of npm. we could centralise this in a bootstrap script called by the benchmark-integration-test-direct.sh and then it's in a single place
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.
I think setting the version of npm in scripts like
benchmark-integration-test-direct.sh
orchecks-and-unit-tests.sh
would be problematic as since the docs mention developers to run those scripts before pushing a change, we might end up installing an unnecessary version of npm in the developer's machine when they run the script.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.
The idea of the script would be to install a newer version only if required, otherwise not make any changes (but see comment below and ref discord chat). I would like to centralise for the build the version of npm required to a single point rather than replicating it across the different sut testing though.
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.
I have added a script for checking prerequisites. However I haven't added it to npm's preinstall script as there is a bug in npm (npm/cli#2660) due to which the preinstall script gets executed only after installing dependencies (whereas we want it to be executed before installing any dependency). I think the way to go is to update the contributor docs (https://hyperledger.github.io/caliper/v0.5.0/contributing/#bootstrapping-the-caliper-repository) to run the script before installing dependencies. I would like to know if there is any other way we could proceed.
This file was deleted.