Skip to content

Commit 76f9f38

Browse files
authored
Update Windows pub cache path from APPDATA to LOCALAPPDATA (#2527)
1 parent 5ed72da commit 76f9f38

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/tools/pub/cmd/pub-get.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ downloaded and stored locally once.
105105

106106
By default, the system package cache is located in the `.pub-cache`
107107
subdirectory of your home directory (on Mac and Linux),
108-
or in `%APPDATA%\Pub\Cache` (on Windows;
108+
or in `%LOCALAPPDATA%\Pub\Cache` (on Windows;
109109
the location might vary depending on the Windows version).
110110
You can configure the location of the cache by setting the
111111
[`PUB_CACHE`](/tools/pub/environment-variables)

src/tools/pub/cmd/pub-global.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ locate the file for your platform and add it.
128128
| Platform | Cache location |
129129
|-------------------|---------------------------|
130130
| macOS or Linux | `$HOME/.pub-cache/bin` |
131-
| Windows<sup><strong>*</strong></sup> | `%APPDATA%\Pub\Cache\bin` |
131+
| Windows<sup><strong>*</strong></sup> | `%LOCALAPPDATA%\Pub\Cache\bin` |
132132
{:.table .table-striped}
133133

134134
<sup><strong>*</strong></sup> The exact location of the system cache

src/tools/pub/environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Environment variables allow you to customize pub to suit your needs.
1010
: Some of pub's dependencies are downloaded to the pub cache.
1111
By default, this directory is located under `.pub-cache`
1212
in your home directory (on Mac and Linux),
13-
or in `%APPDATA%\Pub\Cache` (on Windows). (The precise location of the
13+
or in `%LOCALAPPDATA%\Pub\Cache` (on Windows). (The precise location of the
1414
cache may vary depending on the Windows version.)
1515
You can use the `PUB_CACHE` environment
1616
variable to specify another location. For more information, see

src/tools/pub/glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ different [supported sources](/tools/pub/dependencies#dependency-sources) are av
141141
When pub gets a remote package,
142142
it downloads it into a single _system cache_ directory maintained by
143143
pub. On Mac and Linux, this directory defaults to `~/.pub-cache`.
144-
On Windows, the file lives in `%APPDATA%\Pub\Cache\bin`,
144+
On Windows, the file lives in `%LOCALAPPDATA%\Pub\Cache\bin`,
145145
though its exact location may vary depending on the Windows version.
146146
You can specify a different location using the
147147
[PUB_CACHE](/tools/pub/environment-variables) environment variable.

0 commit comments

Comments
 (0)