fix: symlink resolution
This commit is contained in:
@@ -133,9 +133,11 @@ fn op_import<Ctx: RuntimeContext>(
|
|||||||
|
|
||||||
let current_dir = ctx.get_current_dir();
|
let current_dir = ctx.get_current_dir();
|
||||||
let mut absolute_path = current_dir
|
let mut absolute_path = current_dir
|
||||||
.join(&path)
|
.join(&path);
|
||||||
.canonicalize()
|
// Do NOT resolve symlinks (eval-okay-symlink-resolution)
|
||||||
.map_err(|e| format!("Failed to resolve path {}: {}", path, e))?;
|
// TODO: is this correct?
|
||||||
|
// .canonicalize()
|
||||||
|
// .map_err(|e| format!("Failed to resolve path {}: {}", path, e))?;
|
||||||
if absolute_path.is_dir() {
|
if absolute_path.is_dir() {
|
||||||
absolute_path.push("default.nix")
|
absolute_path.push("default.nix")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user