Pub is writing empty files in packages folders

92 views
Skip to first unread message

Florian d'Erfurth

unread,
Apr 21, 2014, 1:39:08 PM4/21/14
to mi...@dartlang.org
Hi, got a problem since one hour: all my projects broke in DartEditor during a pub upgrade.
I found out that most of the dart files present in the packages folders were empty. I've deleted my projects packages folders, ran pub upgrade again and I keep getting 0kb files.
So I've changed some dependencies in pubspec.yaml to use git repos instead of pub hosted files, now those dependencies are installed properly.
Is there a way to clean pub's cache? Could this be a pub server issue?

I'm using pub 1.3.3 on windows 7 x64

Bob Nystrom

unread,
Apr 21, 2014, 2:04:44 PM4/21/14
to General Dart Discussion
On Mon, Apr 21, 2014 at 10:39 AM, Florian d'Erfurth <captain....@gmail.com> wrote:
Is there a way to clean pub's cache?

Yes. This tells you where the cache is. You can just delete the "hosted" directory under there and then run "pub get" on your packages to re-download the stuff.

I just, like a few days ago, added a new "pub cache repair" command that will do this more gracefully. It will be in the next dev release.
 
Could this be a pub server issue?

That's unlikely. When this happens, it usually some program that followed a symlink into your packages directory and then started changing stuff in your cache.

Cheers!

- bob

Florian d'Erfurth

unread,
Apr 21, 2014, 2:11:46 PM4/21/14
to mi...@dartlang.org
Deleting the directory did it! Thanks :)
Reply all
Reply to author
Forward
0 new messages