Skip to content

Commit 6b6ebad

Browse files
committed
feat: support absolute paths for projectTemplate
Sometimes a configuration object may be used two different configs with different paths; and `projectTemplate` should be absolute for this reason. This is not supported right now.
1 parent 46287b4 commit 6b6ebad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runner/orchestration/file-system.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
safeWriteFile,
99
} from '../file-system-utils.js';
1010
import {LlmContextFile, LlmResponseFile, RootPromptDefinition} from '../shared-interfaces.js';
11-
import {join} from 'path';
11+
import {join, resolve} from 'path';
1212
import {existsSync} from 'fs';
1313
import {mkdir, mkdtemp, readFile} from 'fs/promises';
1414
import {globSync} from 'tinyglobby';
@@ -60,7 +60,7 @@ export async function setupProjectStructure(
6060
const directoriesToCopy: string[] = [];
6161

6262
if (env.executor instanceof LocalExecutor && env.executor.config.projectTemplate) {
63-
const projectTemplatePath = join(env.rootPath, env.executor.config.projectTemplate);
63+
const projectTemplatePath = resolve(env.rootPath, env.executor.config.projectTemplate);
6464

6565
// Copy the template files first.
6666
directoriesToCopy.push(projectTemplatePath);

0 commit comments

Comments
 (0)