diff --git a/core/src/constants.ts b/core/src/constants.ts index 4a628db2c7..4bf5af7b04 100644 --- a/core/src/constants.ts +++ b/core/src/constants.ts @@ -72,7 +72,7 @@ export const gardenEnv = { GARDEN_ENVIRONMENT: env.get("GARDEN_ENVIRONMENT").required(false).asString(), GARDEN_EXPERIMENTAL_BUILD_STAGE: env.get("GARDEN_EXPERIMENTAL_BUILD_STAGE").required(false).asBool(), GARDEN_GE_SCHEDULED: env.get("GARDEN_GE_SCHEDULED").required(false).asBool(), - GARDEN_GIT_SCAN_MODE: env.get("GARDEN_GIT_SCAN_MODE").required(false).asEnum(gitScanModes), + GARDEN_GIT_SCAN_MODE: env.get("GARDEN_GIT_SCAN_MODE").required(false).default("repo").asEnum(gitScanModes), GARDEN_LEGACY_BUILD_STAGE: env.get("GARDEN_LEGACY_BUILD_STAGE").required(false).asBool(), GARDEN_LOG_LEVEL: env.get("GARDEN_LOG_LEVEL").required(false).asString(), GARDEN_LOGGER_TYPE: env.get("GARDEN_LOGGER_TYPE").required(false).asString(), diff --git a/core/src/vcs/git-repo.ts b/core/src/vcs/git-repo.ts index b78ab71870..7d8645e64c 100644 --- a/core/src/vcs/git-repo.ts +++ b/core/src/vcs/git-repo.ts @@ -110,11 +110,11 @@ export class GitRepoHandler extends GitHandler { existing = this.cache.get(log, key) if (existing) { - params.log.silly(`Found cached repository match at ${path}`) + log.silly(`Found cached repository match at ${path}`) return existing } - params.log.info(`Scanning repository at ${path}`) + log.silly(`Scanning repository at ${path}`) const files = await super.getFiles({ ...params, scanRoot: undefined }) const fileTree = FileTree.fromFiles(files) diff --git a/core/test/unit/src/plugins/container/container.ts b/core/test/unit/src/plugins/container/container.ts index 1e6126bbe4..627883ad5a 100644 --- a/core/test/unit/src/plugins/container/container.ts +++ b/core/test/unit/src/plugins/container/container.ts @@ -251,7 +251,7 @@ describe("plugins.container", () => { config: moduleConfig, buildDependencies: [], forceVersion: true, - scanRoot: garden.projectRoot, + scanRoot: projectRoot, }) }