Change parser cwd when running a file (#7134)

* Change parser cwd when running a file

* Add test

* Add missing file
This commit is contained in:
Jakub Žádník
2022-11-15 00:05:27 +01:00
committed by GitHub
parent 336df6c65e
commit 81b12d02ec
4 changed files with 25 additions and 1 deletions

View File

@ -29,6 +29,8 @@ pub fn evaluate_file(
let file = std::fs::read(&path).into_diagnostic()?;
engine_state.start_in_file(Some(&path));
let mut working_set = StateWorkingSet::new(engine_state);
trace!("parsing file: {}", path);