Skip to content

Commit

Permalink
Emit a log message when archived packages are skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Jun 16, 2023
1 parent 4f0a13b commit b6fd6de
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/wasix/src/runtime/resolver/wapm_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,15 @@ impl Source for WapmSource {
tracing::trace!(?pkg_version, "checking package version");
let version = Version::parse(&pkg_version.version)?;

if !pkg_version.is_archived && version_constraint.matches(&version) {
if pkg_version.is_archived {
tracing::debug!(
pkg.version=%version,
"Skipping an archived version",
);
continue;
}

if version_constraint.matches(&version) {
match decode_summary(pkg_version) {
Ok(summary) => summaries.push(summary),
Err(e) => {
Expand Down

0 comments on commit b6fd6de

Please sign in to comment.