Skip to content

Pub-build fails if PUB_CACHE is in a different drive (windows) #1174

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

Closed
DartBot opened this issue Jun 5, 2015 · 3 comments
Closed

Pub-build fails if PUB_CACHE is in a different drive (windows) #1174

DartBot opened this issue Jun 5, 2015 · 3 comments
Assignees
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="96" height="96"hspace="10"> Issue by sigmundch
Originally opened as dart-lang/sdk#21365


Here is an example from one of our package bots:

http://chromegw.corp.google.com/i/client.dart.packages/builders/packages-windows-googleapis_auth/builds/62/steps/Pub%20build/logs/stdio

The failure was that the PUB_CACHE was by default on C:, but the package was on E:\

Clearly the packages symlinks from pub-get were broken, but I was expecting pub-serve/pub-build to work regardless.

If it can't be fixed, we should consider providing an error message to help users debug/fix it.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3


Assigning to Bob, since he has a Windows machine on which he can reproduce this.


Set owner to @munificent.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent


Unfortunately, symlinks cannot span drives on Windows. Even though pub build and serve don't require the symlinks, they do implicitly run pub get first, which does create them.

We can't change the behavior here, but I agree a better error message would help.

@DartBot DartBot added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) Priority-Medium labels Jun 5, 2015
@nex3
Copy link
Member

nex3 commented Dec 9, 2015

I'm closing this out, since we're close to a solution for #727 anyway.

@nex3 nex3 closed this as completed Dec 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants