mozilla build configuration & logging goes in ~/.mozbuild **by default**, but you can override that with the `$MOZBUILD_STATE_PATH` environmental variable (which I do, to keep my home directory more lightweight). As of version 1.21, moz-phab now tries to store things in your mozbuild directory, but it does not respect this environmental variable. In particular, I hit bug 1544727 (where it's trying to find a logging directory) with this error: ``` IOError: [Errno 2] No such file or directory: '/home/dholbert/.mozbuild/moz-phab/moz-phab.log' ``` ...despite the fact that I have this env variable set: `MOZBUILD_STATE_PATH=/scratch/work/builds/.mozbuild` EXPECTED RESULTS: moz-phab should respect my MOZBUILD_STATE_PATH environmental variable. I think the issue is with this line: ``` MOZBUILD_PATH = os.path.join(HOME_DIR, ".mozbuild", "moz-phab") ``` https://github.com/mozilla-conduit/review/blob/d0e4945c22df02bab49701bf380fa07cc5985811/moz-phab#L79
Bug 1544902 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
mozilla build configuration & logging goes in ~/.mozbuild **by default**, but you can override that with the `$MOZBUILD_STATE_PATH` environmental variable (which I do, to keep my home directory more lightweight). As of version 1.21, moz-phab now tries to store things in your mozbuild directory, but it does not respect this environmental variable. In particular, I hit bug 1544727 (where it's trying to find a logging directory) with this error: ``` IOError: [Errno 2] No such file or directory: '/home/dholbert/.mozbuild/moz-phab/moz-phab.log' ``` ...despite the fact that I have this env variable set: `MOZBUILD_STATE_PATH=/scratch/work/builds/.mozbuild` ACTUAL RESULTS: moz-phab tries to put stuff in `~/.mozbuild` (which does not exist on my system) EXPECTED RESULTS: moz-phab should respect my `MOZBUILD_STATE_PATH` environmental variable and put things there instead. I think the issue is with this line: ``` MOZBUILD_PATH = os.path.join(HOME_DIR, ".mozbuild", "moz-phab") ``` https://github.com/mozilla-conduit/review/blob/d0e4945c22df02bab49701bf380fa07cc5985811/moz-phab#L79