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
@@ -191,8 +191,8 @@ materialize_binary_variant(const BinaryCompatibilityKey &key,
|
||||
}
|
||||
}
|
||||
std::filesystem::create_directories(destination.parent_path(), ec);
|
||||
auto downloaded =
|
||||
download_binary_artifact(selected->download_url, selected->sha256, destination);
|
||||
auto downloaded = download_binary_artifact(selected->download_url, selected->sha256,
|
||||
destination, RegistryAuth{options.bearer_token});
|
||||
if (!downloaded) {
|
||||
return std::unexpected{downloaded.error()};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user