mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
getSourcePath(): Return std::filesystem::path
This commit is contained in:
parent
9003343b53
commit
f5548c17ed
7 changed files with 11 additions and 16 deletions
|
@ -311,14 +311,9 @@ struct GitInputScheme : InputScheme
|
|||
runProgram("git", true, args, {}, true);
|
||||
}
|
||||
|
||||
// FIXME: return std::filesystem::path
|
||||
std::optional<Path> getSourcePath(const Input & input) const override
|
||||
std::optional<std::filesystem::path> getSourcePath(const Input & input) const override
|
||||
{
|
||||
auto repoInfo = getRepoInfo(input);
|
||||
if (auto path = repoInfo.getPath())
|
||||
return *path;
|
||||
else
|
||||
return std::nullopt;
|
||||
return getRepoInfo(input).getPath();
|
||||
}
|
||||
|
||||
void putFile(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue