summaryrefslogtreecommitdiff
path: root/src/eval/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-28 10:35:44 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-28 10:36:53 +0200
commit04bffc4f12ff7dd85d25f5fd65506440287f879c (patch)
tree311a78d174f95c6e4733e3eb17a40f78744c3854 /src/eval/mod.rs
parent7b92bd7c340d9f9c094ed2fa57912049317d9b20 (diff)
Reintroduce `--root`
Diffstat (limited to 'src/eval/mod.rs')
-rw-r--r--src/eval/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs
index 0805f9cc..fe28e3f3 100644
--- a/src/eval/mod.rs
+++ b/src/eval/mod.rs
@@ -1767,8 +1767,7 @@ fn import_package(vm: &mut Vm, spec: PackageSpec, span: Span) -> SourceResult<Mo
manifest.validate(&spec).at(span)?;
// Evaluate the entry point.
- let entrypoint = Path::new("/").join(manifest.package.entrypoint.as_str());
- let entrypoint_id = FileId::new(Some(spec), &entrypoint);
+ let entrypoint_id = manifest_id.join(&manifest.package.entrypoint).at(span)?;
let source = vm.world().source(entrypoint_id).at(span)?;
let point = || Tracepoint::Import;
Ok(eval(vm.world(), vm.route, TrackedMut::reborrow_mut(&mut vm.vt.tracer), &source)