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

Parallel instances of pub get interact poorly #21408

Closed
DartBot opened this issue Oct 24, 2014 · 4 comments
Closed

Parallel instances of pub get interact poorly #21408

DartBot opened this issue Oct 24, 2014 · 4 comments

Comments

@DartBot
Copy link

DartBot commented Oct 24, 2014

This issue was originally filed by daniel.robinson...@gmail.com


What steps will reproduce the problem?

  1. I manually clicked to run pub get on my project pubspec.yaml file whilst a pub get was already in process on that pubspec. I was then in the state where my download of unittest 0.11.0+5 package was corrupted as it didn't have its own pubspec file inside.
  2. Then running pub cache repair failed also because unittests pubspec didnt exist

What is the expected output? What do you see instead?
I think if a pub get is in progress it should probably queue up further pub get calls so as to not corrupt package downloads (assuming that was the cause of the corruption) If you run pub cache repair and it comes across a corrupt package that doesn't have a pubspec.yaml file in it then it should delete the package completely and redownload it, rather than just getting stuck.

What version of the product are you using?

Dart Editor version 1.8.0.dev_00_00 (DEV)
Dart SDK version 1.8.0-dev.0.0

On what operating system?
windows 7 64bit

@DartBot
Copy link
Author

DartBot commented Oct 24, 2014

@sethladd
Copy link
Contributor

Added Area-Pub, Triaged labels.

@nex3
Copy link
Member

nex3 commented Oct 24, 2014

There are two separate issues here: one about multiple instances of pub stepping on each others' toes when they run in parallel and one about "pub cache repair" failing when a pubspec is missing. I'm going to retarget this issue to the former, and I've filed issue #21418 to cover the latter.


cc @munificent.
Changed the title to: "Parallel instances of pub get interact poorly".

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#1178.

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

No branches or pull requests

4 participants