Issue 1908 darcs complains if there is no global cache

Title darcs complains if there is no global cache
Priority bug Status resolved
Milestone Resolved in 2.8.0
Superseder Nosy List abuiles, dmitry.kurochkin, kowey, mornfall
Assigned To abuiles
Topics Regression

Created on 2010-08-07.16:39:11 by kowey, last changed 2020-08-01.11:03:57 by bf.

msg12026 (view) Author: kowey Date: 2010-08-07.16:39:10
Hi Adolfo,

One thing I just noticed after applying one of Petr's test patches.  If 
you don't have a global cache directory (as in the case in the 
regression tests), darcs will complain about not being able to reach it.

This sounds like it may be an easy exception to account for.  Could you 
investigate and see what needs to be done?  I think you only need to 
handle the case of the default global cache dir.
msg12027 (view) Author: kowey Date: 2010-08-07.16:39:36
Argh, I meant to say this is a minor regression introduced with your 
issue1599 work
msg12045 (view) Author: mornfall Date: 2010-08-08.12:20:25
This is actually a major regression, since I am seeing this, if the 
global cache does not exist (running cabal test get-http -- you need 
lighttpd for that, and you need to run *only* that -- an earlier test 
would have created the global cache...).

+ darcs get http://localhost:23032/R S
Hash failure in 

darcs failed:  Couldn't fetch 
in subdir pristine.hashed from sources:

For all I can tell, this is because the code tries to check cache 
reachability *before* trying to create it, which consequently leads it 
to to forget to write the actual file it intended to write.

Well, seems like an easy fix, submitting now... please review ASAP.
msg12056 (view) Author: mornfall Date: 2010-08-08.13:36:58
The following patch updated issue issue1908 with status=resolved;resolvedin=2.8.0 HEAD

* Resolve issue1908: try to create a global cache before checking its availability. 
Ignore-this: a93e6f5d4a1272fc49341236820a9833
msg21806 (view) Author: bf Date: 2020-02-14.00:01:12
Rebased to resolve conflict & removed Setup.hs

1 patch for repository http://darcs.net/screened:

patch cfe1a7106c414f6518da1e47f4f9bb9f2d75cd6b
Author: Ben Franksen <ben.franksen@online.de>
Date:   Sat Jan 25 13:09:59 CET 2020
  * WIP: drop custom Setup.hs
msg21809 (view) Author: bf Date: 2020-02-14.01:07:58
Sorry, please ignore, I messed up the subject.
msg22356 (view) Author: bf Date: 2020-08-01.11:03:55
This one was accidentally reset to open.
Date User Action Args
2010-08-07 16:39:11koweycreate
2010-08-07 16:39:36koweysetmessages: + msg12027
2010-08-08 12:20:26mornfallsetmessages: + msg12045
2010-08-08 13:36:59mornfallsetstatus: needs-reproduction -> resolved
messages: + msg12056
resolvedin: 2.8.0
2020-02-14 00:01:14bfsetfiles: + patch-preview.txt, wip_-drop-custom-setup_hs_0.dpatch, unnamed
status: resolved -> unknown
messages: + msg21806
2020-02-14 01:07:17bfsetfiles: - patch-preview.txt
2020-02-14 01:07:23bfsetfiles: - unnamed
2020-02-14 01:07:27bfsetfiles: - wip_-drop-custom-setup_hs_0.dpatch
2020-02-14 01:08:00bfsetmessages: + msg21809
2020-08-01 11:03:57bfsetstatus: unknown -> resolved
messages: + msg22356