summaryrefslogtreecommitdiff
path: root/doc/bugs/Three_tests_fail_when_annex.backends_is_defined/comment_1_153ba2b98b65fcc6156b1f2f967839b2._comment
blob: 194439668d815f19295cc6e54d38998f108e023f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2016-02-17T16:16:53Z"
 content="""
The solution to your build failure is to edit ~/.cabal/config and remove
the extra-prog-path line. (It's unfortunate that Debian shipped 8.3 with
that bug. I told them about it before the release, but they didn't get it
fixed in time.)

There are probably several other config settings that also break 
the test suite if set in a global gitconfig. For example the
annex.addunlocked setting I added yesterday will.

I think the best approach is to isolate the the test suite from global git
config settings. Making the test suite set `GIT_CONFIG` to the config of
each test repo it runs git-annex in seems like it would
work; this prevents git from reading the user and global configs.

The test suite could set all config values to defaults
in the test git repos. But this would need some restructuring of the code to
be able to not just query, but also set those values.
"""]]