Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack clones external repositories multiple times #5453

Closed
jonathanknowles opened this issue Dec 8, 2020 · 2 comments
Closed

Stack clones external repositories multiple times #5453

jonathanknowles opened this issue Dec 8, 2020 · 2 comments

Comments

@jonathanknowles
Copy link

jonathanknowles commented Dec 8, 2020

General summary

In certain situations, stack clones external dependencies multiple times instead of cloning a single time and caching the result.

In pathological cases, this causes stack to spend a great deal of time re-cloning the same repository, greatly increasing network data usage.

Steps to reproduce

  1. Clone either of the following repositories:
  2. Build with stack build --fast --test --no-run-tests --bench --no-run-benchmarks
  3. Observe the build output.

Expected

Stack clones external repositories as needed, but does not clone each external repository more than once.

Actual

Stack clones certain repositories multiple times:

stack-repeated-repository-clones

Stack version

$ stack --version
Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0

Method of installation

  • Official binary, downloaded from stackage.org or fpcomplete's package repository
@KtorZ
Copy link

KtorZ commented Dec 8, 2020

duplicate of: #5411 ?

@mpilgrem
Copy link
Member

I am closing this issue as it appears to me also to be a duplicate of #5411.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants