msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Consider moving graph cache from .graph to .cache/graph to match XDG specification

Open JustinGrote opened this issue 4 years ago • 1 comments

Powershell 7 follows the XDG spec for user folder data, this module should as well to help discovery and filesystem linking.

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

$XDG_CACHE_HOME defines the base directory relative to which user-specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a default equal to $HOME/.cache should be used. AB#10167

https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1#paths

JustinGrote avatar Jul 08 '21 22:07 JustinGrote

@calebkiage @timayabi2020 this seems like a best practice we should be following. I wouldn't prioritize it as of yet, but I agree with @JustinGrote that this would provide a better unified experience for UNIX PowerShell devs.

Now, will this be considered a breaking change (or at least, breaking cached tokens for users using it, forcing new authentication)?

sebastienlevert avatar Feb 29 '24 15:02 sebastienlevert