8000 Merge pull request #550 from atifaziz/readme-cache-loc · dotnet-script/dotnet-script@c4e0d8b · GitHub
[go: up one dir, main page]

Skip to content

Commit c4e0d8b

Browse files
authored
Merge pull request #550 from atifaziz/readme-cache-loc
Add section on cache location in README
2 parents 260b77e + c1277f1 commit c4e0d8b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,15 @@ In order to execute a script it needs to be compiled first and since that is a C
264264

265265
> You can override this automatic caching by passing **--no-cache** flag, which will bypass both caches and cause dependency resolution and script compilation to happen every time we execute the script.
266266
267+
#### Cache Location
268+
269+
The temporary location used for caches is a sub-directory named `dotnet-script` under (in order of priority):
270+
271+
1. The path specified for the value of the environment variable named `DOTNET_SCRIPT_CACHE_LOCATION`, if defined and value is not empty.
272+
2. Linux distributions only: `$XDG_CACHE_HOME` if defined otherwise `$HOME/.cache`
273+
3. macOS only: `~/Library/Caches`
274+
4. The value returned by [`Path.GetTempPath`](https://docs.microsoft.com/en-us/dotnet/api/system.io.path.gettemppath) for the platform.
275+
267276
###
268277

269278
### Debugging

0 commit comments

Comments
 (0)
0