I looked this changeset over - sorry for the delay, I had more to comment on here than I expected for a seemingly simple change.
Here are my thoughts:
- it would be better to not duplicate code for creating the installable cache directory if it doesn't exist
- the directory used will not be differentiated by user (unlike the current tmp cache dir). Was this intentional?
- what if the user sets AUTOBUILD_INSTALLABLE_CACHE to the empty string? to '/'? are there other values we should protect against?
- the method where this code is inserted is called "get_default_install_cache_dir" - this description is no longer true (it's not 'default') if we allow the user to configure the directory inside this method. The method should then either be renamed, or this code should reside elsewhere.
Finally, what are the usecases that this environment variable would address? Who will use it, and is there a problem that this fixes?
Other reviews