@@ -157,12 +157,18 @@ pub fn init_pnp_manifest<P: AsRef<Path>>(manifest: &mut Manifest, p: P) {
157157
158158 for ( name, ranges) in manifest. package_registry_data . iter_mut ( ) {
159159 for ( reference, info) in ranges. iter_mut ( ) {
160+ println ! ( "manifest.manifest_dir, {}" , manifest. manifest_dir. to_string_lossy( ) ) ;
161+
160162 let package_location = manifest. manifest_dir . join ( info. package_location . clone ( ) ) ;
161163
162164 let normalized_location = util:: normalize_path ( package_location. to_string_lossy ( ) ) ;
163165
166+ println ! ( "normalized_location: {normalized_location}" ) ;
167+
164168 info. package_location = PathBuf :: from ( normalized_location) ;
165169
170+ println ! ( "info.package_location: {}" , info. package_location. to_string_lossy( ) ) ;
171+
166172 if !info. discard_from_lookup {
167173 manifest. location_trie . insert (
168174 & info. package_location ,
@@ -207,6 +213,12 @@ pub fn find_locator<'a, P: AsRef<Path>>(
207213 }
208214 }
209215
216+ println ! ( "path {}" , path. as_ref( ) . to_string_lossy( ) ) ;
217+
218+ let path = util:: normalize_path ( path. as_ref ( ) . to_string_lossy ( ) ) ;
219+
220+ println ! ( "path {path}" ) ;
221+
210222 manifest. location_trie . get_ancestor_value ( & path)
211223}
212224
@@ -341,10 +353,7 @@ pub fn resolve_to_unqualified_via_manifest<P: AsRef<Path>>(
341353 }
342354 } ?;
343355
344- Ok ( Resolution :: Resolved (
345- dependency_pkg. package_location . clone ( ) ,
346- module_path,
347- ) )
356+ Ok ( Resolution :: Resolved ( dependency_pkg. package_location . clone ( ) , module_path) )
348357 } else {
349358 let broken_ancestors = find_broken_peer_dependencies ( specifier, parent_locator) ;
350359
0 commit comments