Skip to content

npm_install runs three times on a clean build #2620

@alexeagle

Description

@alexeagle

We run npm_install three times. For a client I'm working with, this makes a 75sec npm install operation require almost 250sec just to bazel query @npm//:all 😱

Repro

Run any npm_install repo rule, such as

t=$(mktemp -d); bazel --output_base=$t build @npm_node_patches//:all; echo "output_base $t"

and then look at the $t/command.profile.gz in chrome://tracing

and see horrifying result
Screen Shot 2021-04-22 at 10 29 13 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions