serpent-os / boulder-d-legacy

Replaced by Rust tooling
https://serpentos.com
21 stars 7 forks source link

Define a cache directory inside the container #38

Open livingsilver94 opened 1 year ago

livingsilver94 commented 1 year ago

Some build systems (e.g. the Go bootstrapping, or gradle) use a cache directory. There's currently no environment variable set to provide one. We may set HOME or XDG_CACHE_HOME to solve the issue. Or both.

ermo commented 1 year ago

@livingsilver94

Which of the two is more prevalent? And which of the two is more correct?

I'm asking from the position of wondering whether projects which use $HOME instead of $XDG_CACHE_HOME would consider changing from $HOME to $XDG_CACHE_HOME if a bug was filed?

The pragmatic solution is to set both of course. Of the two, $XDG_CACHE_HOME seems the more correct solution to me.

livingsilver94 commented 1 year ago

$XDG_CACHE_HOME is indeed more correct, and specific. Creating a custom cache directory inside $HOME is a behavior some non-xdg-conformant applications have.

Anyway, regardless of the caching necessity, the $HOME variable is assumed to be set by most Linux application for... uncountable reasons.