Skip to content

Commit

Permalink
TEMP for debugging on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tevanoff committed May 14, 2024
1 parent 9f3bdc4 commit 91b7f58
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions node-src/git/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ export async function findFilesFromRepositoryRoot(...patterns: string[]) {
// not the directory in which this is executed from
const gitCommand = `git ls-files --full-name -z ${patternsFromRoot.map((p) => `'${p}'`).join(' ')}`;
const files = await execGitCommand(gitCommand);
console.log('*** filesFromRoot', gitCommand, files)
return files.split(NULL_BYTE).filter(Boolean);
}

Expand Down
11 changes: 11 additions & 0 deletions node-src/lib/findChangedDependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,21 @@ export const findChangedDependencies = async (ctx: Context) => {
})
);

console.log('*** rootManifestPath', rootManifestPath);
console.log('*** rootLockfilePath', rootLockfilePath);
console.log('*** nestedManifestPaths', nestedManifestPaths);
console.log('*** metadataPathPairs', metadataPathPairs);
console.log('*** packageMetadataChanges', packageMetadataChanges);
console.log('*** untraced', untraced);

if (rootManifestPath && rootLockfilePath) {
metadataPathPairs.unshift([rootManifestPath, rootLockfilePath]);
} else if (!metadataPathPairs.length) {
throw new Error(`Could not find any pairs of ${PACKAGE_JSON} + ${PACKAGE_LOCK} / ${YARN_LOCK}`);
}

console.log('*** metadataPathPairs2', metadataPathPairs);

ctx.log.debug(
{ pathPairs: metadataPathPairs },
`Found ${metadataPathPairs.length} manifest/lockfile pairs to check`
Expand All @@ -81,6 +90,8 @@ export const findChangedDependencies = async (ctx: Context) => {
!untraced.some((glob) => matchesFile(glob, manifestPath)) && commits.length > 0
);

console.log('*** filteredPathPairs', filteredPathPairs);

ctx.log.debug(
{ filteredPathPairs },
`Found ${filteredPathPairs.length} manifest/lockfile pairs to diff`
Expand Down

0 comments on commit 91b7f58

Please sign in to comment.