diff --git a/packages/aft/lib/src/repo.dart b/packages/aft/lib/src/repo.dart index 010234a5b0..ce7a2f43f1 100644 --- a/packages/aft/lib/src/repo.dart +++ b/packages/aft/lib/src/repo.dart @@ -28,6 +28,8 @@ class Repo { AftConfig aftConfig, { AWSLogger? logger, }) async { + logger?.info('### root: ${aftConfig.rootDirectory.toFilePath()}'); + logger?.info('### workingDirectory: ${aftConfig.workingDirectory}'); final gitDir = await GitDir.fromExisting( aftConfig.rootDirectory.toFilePath(), ); @@ -71,6 +73,7 @@ class Repo { /// the base git reference for calculating changes relevant to this version /// bump. Future latestBumpRef(PackageInfo package) async { + logger.info('latestBumpRef'); final packageName = package.name; final component = components[packageName]?.name ?? components.values @@ -90,10 +93,12 @@ class Repo { (commitMessage.updatedComponents.contains(component) || commitMessage.updatedComponents.contains(packageName) || commitMessage.updatedComponents.isEmpty)) { + logger.info('commitMessage.sha: ${commitMessage.sha}'); return commitMessage.sha; } (sha, commit) = await git.commitRef(commit.parents.first); } + logger.info('commitMessage.sha: null'); return null; } @@ -151,6 +156,8 @@ class Repo { /// Collect all the packages which have changed between [baseRef]..[headRef] /// and the commits which changed them. Future changes(String baseRef, String headRef) async { + logger.info('baseRef: $baseRef'); + logger.info('headRef: $headRef'); final baseTree = (await git.commitFromRevision(baseRef)).treeSha; final headTree = (await git.commitFromRevision(headRef)).treeSha; final diffMarker = (baseTree, headTree);