Skip to content

Commit 571f828

Browse files
committed
test: test mode isolated git environments are subdirectories to have more similar environment to real deployments
Been trying to deploy 0.11.0, but it keeps failing. Want to try this solution? We can make the environment similar and then go from there. We might need to make some other changes to actually make it work, but at least we want to make the testing similar.
1 parent 88b0205 commit 571f828

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/git.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,9 @@ export class GitRepoManagerImpl implements GitRepoManager {
503503
// note: after the clone, you should checkout the desired branch in the cloned repo.
504504
async getIsolatedClone(): Promise<{ git: Git; directory: string }> {
505505
const cloneDirectory = await Deno.makeTempDir({
506+
// making the temp directory in the codebase. This is because of deno runtime permission flags.
507+
// without this, test mode is not as close to the real deployment environment as possible.
508+
dir: Deno.cwd(),
506509
prefix: "decaf-clone-",
507510
})
508511

0 commit comments

Comments
 (0)