With both 2.3.0 and 2.3.1 I am getting an error when building on Windows as follows:
error: Unable to release temporary directories. Please report this error to pretext-support
critical: There were errors during the build. See above.
critical: Failed to build without errors. Exiting...
There's nothing more in the log, so I thought I should run with debugging turned on for more details.
BUT! But... with debugging on there are no errors, because debugging leaves the temp directories behind.
So it seems that the CLI can create the temp directories, but can't remove them when it's done for some reason.