Skip to content

Commit d8a7c50

Browse files
authored
Merge pull request #12580 from ysndr/fix/fetchers/host-in-locked-url
Add host attribute of github/gitlab flakerefs to URL serialization
2 parents 92c4789 + 954e910 commit d8a7c50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libfetchers/github.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ struct GitArchiveInputScheme : InputScheme
149149
};
150150
if (auto narHash = input.getNarHash())
151151
url.query.insert_or_assign("narHash", narHash->to_string(HashFormat::SRI, true));
152+
auto host = maybeGetStrAttr(input.attrs, "host");
153+
if (host)
154+
url.query.insert_or_assign("host", *host);
152155
return url;
153156
}
154157

0 commit comments

Comments
 (0)