Skip to content

extra-deps' clones as many times the repository as there are subdirs #5411

@blackheaven

Description

@blackheaven

General summary/comments (optional)

When I specify, in extra-deps, a repository with many subdirs, the repository is clone many times.

Steps to reproduce

Build a project with this package.yml part:

extra-deps:
- git: https://github.com/theam/aws-lambda-haskell-runtime.git
  commit: 6aef017c1621c828a47dc98eae12d84818a8d45c
- git: https://github.com/brendanhay/amazonka.git
  commit: 020bc7bde47bb235e448c76088dc44d6cec13e9b
  subdirs:
    - gen
    - core
    - test
    - examples
    - amazonka

Expected

I expect only one cloning.

Actual

The repository is cloned once by subdir.

Partial output

Stack version

$ stack --version
Version 2.3.3, Git revision cb44d51bed48b723a5deb08c3348c0b3ccfc437e x86_64 hpack-0.33.0

Method of installation

curl -sSL https://get.haskellstack.org/ | sh

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions