From 900658483556c8f93fc988d0936c6cfd901a0402 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 29 Dec 2021 21:08:13 -0800 Subject: [PATCH] uriFromImportStr expects a uri not a path --- src/DocumentStore.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DocumentStore.zig b/src/DocumentStore.zig index e8448d2..fa6da16 100644 --- a/src/DocumentStore.zig +++ b/src/DocumentStore.zig @@ -614,7 +614,7 @@ pub fn uriFromImportStr(self: *DocumentStore, allocator: std.mem.Allocator, hand return try allocator.dupe(u8, builtin_uri); } } - return try allocator.dupe(u8, self.builtin_path.?); + return try URI.fromPath(allocator, self.builtin_path.?); } else if (!std.mem.endsWith(u8, import_str, ".zig")) { if (handle.associated_build_file) |build_file| { for (build_file.packages.items) |pkg| {