We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f9c962 commit f3aeecaCopy full SHA for f3aeeca
src/libflake/flakeref.cc
@@ -3,6 +3,7 @@
3
#include "nix/util/url.hh"
4
#include "nix/util/url-parts.hh"
5
#include "nix/fetchers/fetchers.hh"
6
+#include "nix/fetchers/fetch-settings.hh"
7
8
namespace nix {
9
@@ -61,7 +62,8 @@ static std::pair<FlakeRef, std::string>
61
62
fromParsedURL(const fetchers::Settings & fetchSettings, ParsedURL && parsedURL, bool isFlake)
63
{
64
auto dir = getOr(parsedURL.query, "dir", "");
- parsedURL.query.erase("dir");
65
+ if (!fetchSettings.nix219Compat)
66
+ parsedURL.query.erase("dir");
67
68
std::string fragment;
69
std::swap(fragment, parsedURL.fragment);
0 commit comments