-
Notifications
You must be signed in to change notification settings - Fork 652
Description
Environment details
- OS: alpine linux
- Node.js version: 6.x.x, 7.x.x
- npm version: 3.10.x
- @google-cloud/storage version: <= 0.5.0
Steps to reproduce
This module relies on @google-cloud/common, which, in turn, relies on grpc. This causes problems for alpine linux, since it uses muslc. On 6.x.x it is possible to compile by providing glibc wrapper around muslc, so that compatible APIs are available, on node 7.x.x it just crashes during compilation (missing 7.x.x support)
Questions are:
a) why common depends on grpc? I haven't seen a single call using it in the sub-package
b) if I'm right with (a) - could somebody refactor @google-cloud/common and make grpc an optional dependency?
c) if (b) is doable, it's possible to load optional dependencies using Object.defineProperty on "demand", which, as a result, will allow google-cloud/storage API to be freely used on any system without any effort to maintain grpc module compatibility with anything
Thanks for considering this, looking forward to your feedback