-
Notifications
You must be signed in to change notification settings - Fork 156
Add grpc prebuilt binaries somewhere #84
Comments
Just a few notes after some initial investigation... The recommended approach appears to be,
The good news is that it looks like node-pre-gyp should handle this as long as all the binaries are there when creating the extension. The less good news is that there is currently an issue selecting the correct binary in forks - mapbox/node-pre-gyp#278 |
While that is the recommend approach it makes the extension size really big. We shouldn’t include all the binaries |
It should add around 12M to the extension size, which isn't nothing but doesn't seem like the end of the world. What's the requirement for keeping the extension size down? Is there a target size? Target install time? (I would personally rather that the extension had actually finished installing once it's installed, which is not the case if you defer additional downloads or end up doing builds.) |
The microsoft c++ extension does the downloading after rather than including it. Which goes against what they recommend in their docs. I'd worry that we wouldn't stop at 4 versions. For example in the future with new versions of vscode if we chose to say that the minimum level we require is not the latest then we would need to include binaries for all the levels of different electron versions. We don't have a target size or time but trying to keep it as small as possible to make downloads of it quicker. You would end up with 3 binaries ( or possibly more) that you didn't need. |
As discussed with @caroline-church, it seems like the options are...
Since option 1 is probably the quickest way to get to a point that grpc won't need building (takes much longer than a download), and it can still fall back to building if required (e.g. if vscode change the electron version without a major version bump), that's our current preferred option. |
While investigating how to build all the binaries into a single extension, it turned out that grpc already has prebuilt binaries for electron 2.0, just not for the old versions specified by the fabric node sdk client. I've opened an issue for updating the version of grpc which should make life a bit easier in the future: |
Fixed in hyperledger/fabric-sdk-node@6366fac |
Rebuilding the grpc binaries takes ages we should try and add them somewhere
The text was updated successfully, but these errors were encountered: