Skip to content

Submodules of git dependencies are not fetched #1488

Open
@ntucker

Description

@ntucker

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Having a git dependency with a submodule results in the submodule being an empty directory

If the current behavior is a bug, please provide the steps to reproduce.

  1. Setup NPM package at a github url
  2. Add submodule to said package
  3. Add dependency in package.json for local project that points to the github url of said package
  4. Yarn install
  5. Check node_modules directory for that package and see that submodule folder is empty.

What is the expected behavior?
Submodule directories should have the contents (the cloning process should run submodule init and submodule update)

Please mention your node.js, yarn and operating system version.
Node: 7.0.0
Yarn: 0.16.1
OS: Ubuntu 14.04

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