-
Notifications
You must be signed in to change notification settings - Fork 13
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
Puro unexpectedly modifies PUB_CACHE env variable globally #90
Comments
The reason this was added is because there's unfortunately no other mechanism to tell pub which cache directory to use, particularly when invoked from an IDE (the IntelliJ / vscode plugins bypass the |
For VS Code, I think Puro is already writing a If it has to be set globally, it could at least make it clear during installation. I was using Puro just to try to reproduce some bugs and I was surprised to find I had a second Pub Cache (and now I'm using a Windows Dev Drive for better performance, this change would actually move my cache back onto a non-Dev Drive and undo my performance gains). (that said, it's still not clear to me what moving the folder gains at all.. if it's still a single fixed folder for SDKs, how does the custom location differ from the default?) |
I will be reverting this in the next release, new installs will use the default pub cache |
@pingbird so how active installs should proceed? |
I was surprised to see paths in
C:\Users\danny\.puro\shared\pub_cache
showing up in projects where I had not used Puro. It appears that during installation, thePUB_CACHE
env variable is changed globally.This was rather unexpected to me - I don't think tools like this should modify variables that affect projects that aren't using them. It's also unclear to me why Puro can't just use the cache at the default location.
The text was updated successfully, but these errors were encountered: