Currently when cleaning up the temp files we use sudo:
|
cmd := exec.Command("sudo", "rm", "-rf", path) |
I presume this is because some of the importers run a docker image (as root) which means the produced files are owned by root. If we run that container as the same user hashr is running as they will be owned by that user and we don't need to do "sudo rm ..." which could be dangerous if there is a bug.