1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 10:31:15 +02:00

ParsedURL: Remove base field

(cherry picked from commit 4077aa43a8)
This commit is contained in:
Eelco Dolstra 2025-01-07 14:52:00 +01:00
parent 8856b5f2ca
commit 200e3be41a
6 changed files with 2 additions and 20 deletions

View file

@ -158,10 +158,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,
@ -218,7 +215,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],