Skip to content

Commit

Permalink
Don't absolutize 'git+file:' in parseURLFlakeRef()
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jan 16, 2025
1 parent 40bb5ec commit a27a5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libflake/flake/flakeref.cc
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ std::optional<std::pair<FlakeRef, std::string>> parseURLFlakeRef(
try {
auto parsed = parseURL(url);
if (baseDir
&& (parsed.scheme == "path" || parsed.scheme == "git+file")
&& parsed.scheme == "path"
&& !isAbsolute(parsed.path))
parsed.path = absPath(parsed.path, *baseDir);
return fromParsedURL(fetchSettings, std::move(parsed), isFlake);
Expand Down

0 comments on commit a27a5e6

Please sign in to comment.