uriFromImportStr expects a uri not a path

This commit is contained in:
Meghan Denny 2021-12-29 21:08:13 -08:00
parent 3fdab6c2fa
commit 9006584835

View File

@ -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| {