@@ -356,7 +356,7 @@ fn install_package(
356356 } ;
357357 let root = Root :: new (
358358 db,
359- file_url ( & format ! ( "{prefix}/{name}" ) ) ,
359+ file_path ( & format ! ( "{prefix}/{name}" ) ) ,
360360 kind,
361361 vec ! [ ] ,
362362 vec ! [ ] ,
@@ -367,7 +367,7 @@ fn install_package(
367367 } ;
368368 let pkg = Package :: new (
369369 db,
370- file_url ( & format ! ( "{prefix}/{name}/DESCRIPTION" ) ) ,
370+ file_path ( & format ! ( "{prefix}/{name}/DESCRIPTION" ) ) ,
371371 name. to_string ( ) ,
372372 version,
373373 namespace,
@@ -377,7 +377,7 @@ fn install_package(
377377 ) ;
378378 let pkg_files: Vec < File > = files
379379 . iter ( )
380- . map ( |( path, contents) | File :: new ( db, file_url ( path) , contents. to_string ( ) , Some ( pkg) ) )
380+ . map ( |( path, contents) | File :: new ( db, file_path ( path) , contents. to_string ( ) , Some ( pkg) ) )
381381 . collect ( ) ;
382382 pkg. set_files ( db) . to ( pkg_files) ;
383383 root. set_packages ( db) . to ( vec ! [ pkg] ) ;
@@ -461,7 +461,7 @@ fn test_namespace_import_pkg_makes_export_resolve_in_package_file() {
461461 } ;
462462 let ws_pkg = Package :: new (
463463 & db,
464- file_url ( "workspace/mypkg/DESCRIPTION" ) ,
464+ file_path ( "workspace/mypkg/DESCRIPTION" ) ,
465465 "mypkg" . to_string ( ) ,
466466 None ,
467467 ns,
@@ -472,7 +472,7 @@ fn test_namespace_import_pkg_makes_export_resolve_in_package_file() {
472472 let source = "bar\n " ;
473473 let ws_file = File :: new (
474474 & db,
475- file_url ( "workspace/mypkg/R/a.R" ) ,
475+ file_path ( "workspace/mypkg/R/a.R" ) ,
476476 source. to_string ( ) ,
477477 Some ( ws_pkg) ,
478478 ) ;
@@ -512,7 +512,7 @@ fn test_namespace_importfrom_makes_export_resolve_in_package_file() {
512512 } ;
513513 let ws_pkg = Package :: new (
514514 & db,
515- file_url ( "workspace/mypkg/DESCRIPTION" ) ,
515+ file_path ( "workspace/mypkg/DESCRIPTION" ) ,
516516 "mypkg" . to_string ( ) ,
517517 None ,
518518 ns,
@@ -522,7 +522,7 @@ fn test_namespace_importfrom_makes_export_resolve_in_package_file() {
522522 ) ;
523523 let ws_file = File :: new (
524524 & db,
525- file_url ( "workspace/mypkg/R/a.R" ) ,
525+ file_path ( "workspace/mypkg/R/a.R" ) ,
526526 "baz\n " . to_string ( ) ,
527527 Some ( ws_pkg) ,
528528 ) ;
0 commit comments