Dulwich on Mac OS X
I got the below error during “make check”.
% make check
...
======================================================================
ERROR: test_submodule (dulwich.tests.test_repository.RepositoryTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "dulwich/tests/test_repository.py", line 363, in test_submodule
r = Repo(temp_dir)
File "dulwich/repo.py", line 1255, in __init__
"No git repository was found at %(path)s" % dict(path=root)
NotGitRepository: No git repository was found at /var/folders/y1/nzmpj9yd69vbcvhbqkr_5pv80000gn/T/tmp1JU2Qo
----------------------------------------------------------------------
Ran 708 tests in 22.029s
FAILED (errors=1, skipped=24)
make: *** [check] Error 1
%
Here is the workaround.
% mkdir ~/tmp
% TMPDIR=$HOME/tmp make check
...
Ran 708 tests in 22.253s
OK (skipped=24)
%
In OS X, “/tmp” is a symlink to “private/tmp” because of
the historical reason. Probably it confuses the test.
Vagrant + Chef
I installed VirtualBox and Vagrant on OS X because I want to have a plain Linux box.
On Vagrant, I use Chef to install softwares.
Chef adds an another abstraction layer over Linux distro’s packaging system
like this.
It seems kind of redundant. However if Chef supports only one distribution,
their community will be smaller.