Skip to content

pub uses %APPDATA% and not %LOCALAPPDATA% #1273

Description

@DartBot

Originally opened as dart-lang/sdk#22954

This issue was originally filed by guillermo.listas...@gmail.com


What steps will reproduce the problem?

  1. Check pub's cache dir on Windows OR
  2. Check pub global's exes dir on Windows

What is the expected output? What do you see instead?

Stuff is stored in %USERPROFILE%\AppData\Roaming...

i. e.

%APPDATA%...

Because pub does not store configuration data, but cached data and scripts, it seems strange that pub stores stuff in the roaming profile, as Dart many not be installed on other computers the user accesses. It seems more adequate to store the cache and pub global exes in the %LOCALAPPDATA% folder.

Note that if config data was stored instead, it would be more justifiable to use %APPDATA%.

What version of the product are you using?

1.8.5

On what operating system?

Windows

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions