More work on unnamed package resolution

This commit is contained in:
Christoph Herzog
2024-04-10 15:19:31 +02:00
parent 2de0fd10c8
commit 4de4f39b5b
17 changed files with 172 additions and 118 deletions

View File

@@ -2,7 +2,7 @@ use std::{collections::HashSet, pin::Pin, time::Duration};
use anyhow::{bail, Context};
use cynic::{MutationBuilder, QueryBuilder};
use edge_schema::schema::{NetworkTokenV1, WebcIdent};
use edge_schema::schema::{NetworkTokenV1, PackageIdentifier};
use futures::{Stream, StreamExt};
use time::OffsetDateTime;
use tracing::Instrument;
@@ -24,7 +24,7 @@ use crate::{
/// the API, and should not be used where possible.
pub async fn fetch_webc_package(
client: &WasmerClient,
ident: &WebcIdent,
ident: &PackageIdentifier,
default_registry: &Url,
) -> Result<webc::compat::Container, anyhow::Error> {
let url = ident.build_download_url_with_default_registry(default_registry);