Merge branch 'mob/job-processor' of github.com:spotify/backstage into mob/job-processor

* 'mob/job-processor' of github.com:spotify/backstage:
  feat(scaffolder): create new tempdir for result
  fix(scaffolder): stringify error
This commit is contained in:
blam
2020-06-25 04:28:45 +02:00
@@ -48,10 +48,7 @@ export class CookieCutter implements TemplaterBase {
await fs.writeJSON(`${options.directory}/cookiecutter.json`, cookieInfo);
const templateDir = options.directory;
// TODO(blam): This should be an entirely different directory on the host machine
// not in the template directory
const resultDir = `${templateDir}/result`;
const resultDir = await fs.promises.mkdtemp(`${options.directory}-result`);
await runDockerContainer({
imageName: 'backstage/cookiecutter',