about summary refs log tree commit diff
path: root/LICENSE
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-10-13T06·10-0700
committerAdam Joseph <adam@westernsemico.com>2022-10-13T09·48+0000
commit78d3d9150b1eb76e0820a254c97976e10a8614d6 (patch)
treec0674d4855f06cb08edbc9709ce2d1abcb455595 /LICENSE
parent25336fc47b02fe90bf489402ed84f8259aa80ca8 (diff)
fix(tvix/eval): src/compiler: ensure root_dir is absolute r/5120
Cppnix immediately absolutizes pathnames at parse time; if you write
`./foo`, it is immediately converted to `$(pwd)/foo` and manipulated
as an absolute path at all times.

To avoid having to introduce filesystem access operations in the
implementation of otherwise-pure builtins, let's guarantee that the
`root_dir` of the VM is always an absolute path.

Signed-off-by: Adam Joseph <adam@westernsemico.com>
Change-Id: I7cbbae2cba4b2716ff3f5ff7c9ce0ad529358c8a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6995
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions