feat(tvix/eval): coerce values to paths when importing

This enables the use of string paths (and, in the future,
derivations), as long as their string values represent an absolute
path.

Change-Id: I4b198efeb70415ed52f58bd1da6fa79a24dad14c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6866
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2022-10-04 23:21:49 +03:00 committed by tazjin
parent 07e03498f2
commit 2478a6c5ba
2 changed files with 2 additions and 13 deletions

View file

@ -262,7 +262,7 @@ to a missing value in the attribute set(s) included via `with`."#,
ErrorKind::NotAnAbsolutePath(given) => {
format!(
"string {} doesn't represent an absolute path",
"string '{}' does not represent an absolute path",
given.to_string_lossy()
)
}