feat(package): authenticate private binary-variant downloads
This commit is contained in:
1 parent
40fef50a6f
commit
4e5bdab8cd
10 files changed
+140
-8
No files matched your search
+2
-1
@@ -1203,7 +1203,8 @@ int execute_binaries_command(std::string_view sub, const BinariesCmdOptions &opt
|
||||
Void::Encoding::Url::encode(*opts.version_arg) + "/binaries/" +
|
||||
Void::Encoding::Url::encode(match->variant_id) + "/download";
|
||||
auto downloaded = Package::download_binary_artifact(url, match->sha256,
|
||||
std::filesystem::path{*opts.output_arg});
|
||||
std::filesystem::path{*opts.output_arg},
|
||||
Package::RegistryAuth{auth.bearer_token});
|
||||
if (!downloaded) {
|
||||
std::cerr << "vbs binaries fetch: " << downloaded.error().message() << '\n';
|
||||
return 1;
|
||||
|
||||
Reference in new issue
Block a user