rustic icon indicating copy to clipboard operation
rustic copied to clipboard

Correctly handle directory on rerun

Open CeleritasCelery opened this issue 2 years ago • 0 comments

Currently rustic will override the default-directory to the workspace root after a compilation is finished. This enables it to correctly find the paths in error messages. But it also means that if you rerun a command it will rerun in the root crate instead of the original one.

This change adds a new variable to track the original directory and resets it when we rerun.

CeleritasCelery avatar Aug 11 '23 23:08 CeleritasCelery