From 4cb6467d32459e7a8ef5d86785669509003e3243 Mon Sep 17 00:00:00 2001 From: Daniel Morris Date: Fri, 22 May 2026 14:43:43 +0100 Subject: [PATCH] hotfix: pkg.rs build break + resolve_imports arity (ILO-63 followup) PR #614 (ilo add) merged with two compile errors: 1. src/pkg.rs:253 unwraps git_ref to &str, then line 260 tries to match it as Option. Remove the early unwrap; the later match at 273-276 already handles the Option correctly. 2. src/main.rs:2465 calls resolve_imports with 4 args but it takes 5 (the build_target arg was added by #643). Add the missing arg. Restores main to a clean build. --- src/main.rs | 1 + src/pkg.rs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 85209041..37ed1a69 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2467,6 +2467,7 @@ fn resolve_imports( imported_dir.as_deref(), visited, diagnostics, + build_target, ); visited.remove(&canonical); let filtered = diff --git a/src/pkg.rs b/src/pkg.rs index 5f4e5644..6bcd7032 100644 --- a/src/pkg.rs +++ b/src/pkg.rs @@ -250,8 +250,6 @@ fn add_recursive(spec: &str, visited: &mut HashSet, stack: &mut Vec