CachedDownloadResult: Include store path

Also, make fetchGit and fetchMercurial update allowedPaths properly.

(Maybe the evaluator, rather than the caller of the evaluator, should
apply toRealPath(), but that's a bigger change.)

(cherry picked from commit 5c34d665386f4053d666b0899ecca0639e500fbd)
This commit is contained in:
Eelco Dolstra 2019-05-15 15:38:24 +02:00
parent dc29e9fb47
commit b43e1e186e
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 7 additions and 2 deletions

View file

@ -43,6 +43,9 @@ struct DownloadResult
struct CachedDownloadResult
{
// Note: 'storePath' may be different from 'path' when using a
// chroot store.
Path storePath;
Path path;
std::optional<std::string> etag;
};