[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] [PATCH] Minor changes to egg cache dir handling
From: |
Evan Hanson |
Subject: |
[Chicken-hackers] [PATCH] Minor changes to egg cache dir handling |
Date: |
Thu, 4 Jan 2018 21:13:02 +1300 |
Hello,
Here is a patch with some small changes to the egg cache dir handling
code, mostly to make it more robust when the cache directory or any of
its parents don't exist.
I've removed the use of /tmp for the egg cache when a user's $HOME can't
be determined. My thinking here is that, since the cache is meant to be
relatively persistent (otherwise, there's not much point), it doesn't
make sense to put it in a location that's specifically non-persistent.
You don't want the cache to be blown away on reboot, for example, so
it's better put it directly in the CWD rather than /tmp if we can't use
the user's $HOME. This will be a very rare case, anyway.
I have also made the cache a subdirectory under ~/.chicken-install, so
that we can use ~/.chicken-install for other egg-related purposes in the
future without introducing more dotfiles in the user's home.
Cheers,
Evan
0001-Minor-changes-to-egg-build-caching.patch
Description: Text Data
- [Chicken-hackers] [PATCH] Minor changes to egg cache dir handling,
Evan Hanson <=