GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Create a flatter dependency tree · Issue #1590 · googleapis/google-cloud-node

Create a flatter dependency tree #1590

New issue
Copy link
New issue
Copy link
Closed
Closed
Create a flatter dependency tree#1590
Copy link
Assignees
callmehiphop
Labels
core

Description

@callmehiphop
callmehiphop
opened on Sep 12, 2016
Issue body actions

Relates to #1535

We recently received some feedback that our dependency tree is getting pretty large. Generally our advice has always been to either npm dedupe or upgrade to npm3, which does help a great deal. One thing I've noticed about deduping with npm2 is that we run into a lot of unavoidable conflicts around @google-cloud/common.

This leads me to believe that there are a few things we could probably do to create a flatter dependency tree. Here are a couple of ideas:

  • Moving parts of @google-cloud/common that don't change very often to a separate module. I'm mostly thinking of grpc related items. If common gets an unavoidable duplication error, then we might have multiple grpc installs, each of which contains roughly 4600 files.
  • Be more aggressive about keeping @google-cloud/common up to date in all packages. In this theory this would eliminate the unavoidable duplications we see.
Reacted by Zach Bjornson

Activity

  1. callmehiphop
    added
    core
    on Sep 12, 2016
  2. callmehiphop
    changed the title [-]Create a smaller dependency tree[/-] [+]Create a flatter dependency tree[/+] on Sep 12, 2016
  3. stephenplusplus commented on Sep 12, 2016

    @stephenplusplus
    stephenplusplus
    on Sep 12, 2016
    Contributor
    More actions

    Does 4600 files per gRPC release sound normal @murgatroid99?

  4. callmehiphop commented on Sep 12, 2016

    @callmehiphop
    callmehiphop
    on Sep 12, 2016
    ContributorAuthor
    More actions

    That includes all files, package.json, .gitignore, markdown, etc.

  5. murgatroid99 commented on Sep 13, 2016

    @murgatroid99
    murgatroid99
    on Sep 13, 2016
    More actions

    Yes, that sounds about right. That doesn't include most of the repository, but it does include the source files needed to build the module, including BoringSSL, which is about 1500 files.

    That count also includes the dependencies, and node-pre-gyp (which we use to distribute precompiled binaries) has a surprisingly large dependency tree.

  6. micaww commented on Sep 13, 2016

    @micaww
    micaww
    on Sep 13, 2016
    More actions

    I've also had issues with my containers not deploying on App Engine due to timeouts from npm install taking too long with google-cloud. Downgrading to gcloud works fine. I've had to switch to locally building the Docker image and uploading that way.

  7. stephenplusplus commented on Sep 13, 2016

    @stephenplusplus
    stephenplusplus
    on Sep 13, 2016
    Contributor
    More actions

    @micaww can you upgrade Node or npm? https://github.com/stephenplusplus/gcloud-node/blob/0e80ccb2e01a19719794302368695a539bb6a325/docs/troubleshooting.md#is-the-google-cloud-module-on-npm-really-800-mb

  8. micaww commented on Sep 13, 2016

    @micaww
    micaww
    on Sep 13, 2016
    More actions

    @stephenplusplus thanks for the response. That was the issue. Unfortunately, deploying on App Engine using the runtime nodejs does not work because it installs an old npm/Node combination. I fixed this by creating my own Dockerfile deriving off of the Google base image and installing v5.10.1.

  9. stephenplusplus
    added
    perf
    on Sep 20, 2016
  10. stephenplusplus commented on Sep 26, 2016

    @stephenplusplus
    stephenplusplus
    on Sep 26, 2016
    Contributor
    More actions

    We'll be releasing all of our sub-modules today, followed by the google-cloud umbrella package. Each sub-module will require the same version of grpc and, where applicable, google-gax. In general, we should try to use compatible version ranges across all of the sub-modules.

    This should help improve the issues we've been seeing, however, it will still be required for users on npm < 3 to run npm dedupe to see the benefits.

  11. callmehiphop
    closed this as completedin #1632on Sep 27, 2016
  12. JustinBeckwith
    assigned
    callmehiphop
    on Feb 1, 2021
  13. sofisl
    added a commit that references this issue on Feb 25, 2026

    test: conformance testing for retries (#1566)

    9757193
  14. sofisl
    added a commit that references this issue on Mar 17, 2026

    chore(deps): update dependency aspect_rules_js to v1.42.1 (#1590)

    b8f310a
  15. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    test: conformance testing for retries (googleapis#1566)

    055f2e7
  16. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    fix: In Client-side metrics makes sure that the right views get creat…

    5278701

    fix: In Client-side metrics makes sure that the right views get creat…

    496f522
  17. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    fix: In Client-side metrics makes sure that the right views get creat…

    6eb731c
  18. thiyaguk09
    added a commit that references this issue on May 5, 2026

    fix: In Client-side metrics makes sure that the right views get creat…

    736bb6b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @callmehiphop
    callmehiphop

Labels

core

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.