1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 02:01:48 +02:00

Add convenience overload for toRealPath()

This commit is contained in:
Eelco Dolstra 2020-02-02 12:28:56 +01:00
parent 958ec5de56
commit 7bcc9f2aaf
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
7 changed files with 20 additions and 15 deletions

View file

@ -55,7 +55,7 @@ static std::optional<std::pair<Hash, Tree>> lookupGitInfo(
if (store->isValidPath(storePath)) {
return {{rev, Tree{
.actualPath = store->toRealPath(store->printStorePath(storePath)),
.actualPath = store->toRealPath(storePath),
.storePath = std::move(storePath),
.info = TreeInfo {
.revCount = json["revCount"],
@ -357,7 +357,7 @@ struct GitInput : Input
auto lastModified = std::stoull(runProgram("git", true, { "-C", repoDir, "log", "-1", "--format=%ct", input->rev->gitRev() }));
auto tree = Tree {
.actualPath = store->toRealPath(store->printStorePath(storePath)),
.actualPath = store->toRealPath(storePath),
.storePath = std::move(storePath),
.info = TreeInfo {
.revCount = revCount,