Skip to content

Commit 629c898

Browse files
committed
build_cache.path correction
might as well use values from go docs https://pkg.go.dev/os#UserCacheDir cli code fall back to /tmp when neither $HOME or XDG variables are avaiable https://github.com/arduino/arduino-cli/blob/55f86b541026aad880fcb27bc49e3fe1facb223b/internal/cli/configuration/configuration.go#L105-L114
1 parent 55f86b5 commit 629c898

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/configuration.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ configuration file.
6262

6363
- on Linux (and other Unix-based OS) is: if
6464
[`$XDG_CACHE_HOME`](https://specifications.freedesktop.org/basedir-spec/latest/#variables) is defined,
65-
`$XDG_CACHE_HOME/arduino`. Otherwise `{HOME}/.config/arduino`.
66-
- on Windows is: `{HOME}/AppData/Local/arduino`
67-
- on MacOS is: `{HOME}/Library/Caches/arduino`
65+
`$XDG_CACHE_HOME/arduino`. Otherwise `${HOME}/.cache/arduino`.
66+
- on Windows is: `%LocalAppData%/arduino`
67+
- on MacOS is: `${HOME}/Library/Caches/arduino`
68+
69+
If neither `$HOME` or `$XDG_CACHE_HOME` are defined, a temporary directory will be used.
6870

6971
- The `directories.data` default is OS-dependent:
7072

0 commit comments

Comments
 (0)