1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 12:41:15 +02:00

ParsedURL: Remove base field

This commit is contained in:
Eelco Dolstra 2025-01-07 14:52:00 +01:00
parent f705ce7f9a
commit 4077aa43a8
6 changed files with 2 additions and 20 deletions

View file

@ -159,10 +159,7 @@ std::pair<FlakeRef, std::string> parsePathFlakeRefWithFragment(
while (flakeRoot != "/") {
if (pathExists(flakeRoot + "/.git")) {
auto base = std::string("git+file://") + flakeRoot;
auto parsedURL = ParsedURL{
.base = base,
.scheme = "git+file",
.authority = "",
.path = flakeRoot,
@ -219,7 +216,6 @@ static std::optional<std::pair<FlakeRef, std::string>> parseFlakeIdRef(
if (std::regex_match(url, match, flakeRegex)) {
auto parsedURL = ParsedURL{
.base = "flake:" + match.str(1),
.scheme = "flake",
.authority = "",
.path = match[1],