Skip to content

Commit fd6c461

Browse files
committed
globals: Fix netrc-file default value
std::filesystem::path does quoting by default so it resulted in: > netrc-file = "/etc/nix"/netrc
1 parent 907a576 commit fd6c461

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libstore/include/nix/store/globals.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ public:
11411141

11421142
Setting<std::string> netrcFile{
11431143
this,
1144-
fmt("%s/%s", nixConfDir, "netrc"),
1144+
(nixConfDir / "netrc").string(),
11451145
"netrc-file",
11461146
R"(
11471147
If set to an absolute path to a `netrc` file, Nix uses the HTTP

0 commit comments

Comments
 (0)