Skip to content

Commit ae1ff5c

Browse files
committed
chore(aft): Fix analysis errors
1 parent 80cd383 commit ae1ff5c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/aft/lib/src/commands/generate/generate_workflows_command.dart

+4-5
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ class GenerateWorkflowsCommand extends AmplifyCommand {
2929

3030
@override
3131
Future<void> run() async {
32-
final allPackages = await this.allPackages;
33-
final repoRoot = await rootDir;
32+
await super.run();
3433
for (final package in allPackages.values) {
3534
if (package.pubspecInfo.pubspec.publishTo == 'none' &&
3635
!falsePositiveExamples.contains(package.name)) {
@@ -43,13 +42,13 @@ class GenerateWorkflowsCommand extends AmplifyCommand {
4342
continue;
4443
}
4544
final workflowFilepath = p.join(
46-
repoRoot.path,
45+
rootDir.path,
4746
'.github',
4847
'workflows',
4948
'${package.name}.yaml',
5049
);
5150
final workflowFile = File(workflowFilepath);
52-
final repoRelativePath = p.relative(package.path, from: repoRoot.path);
51+
final repoRelativePath = p.relative(package.path, from: rootDir.path);
5352
final customWorkflow = File(p.join(package.path, 'workflow.yaml'));
5453
if (customWorkflow.existsSync()) {
5554
customWorkflow.copySync(workflowFilepath);
@@ -83,7 +82,7 @@ class GenerateWorkflowsCommand extends AmplifyCommand {
8382
];
8483
final workflowPaths = [
8584
...workflows.map((workflow) => '.github/workflows/$workflow'),
86-
p.relative(workflowFilepath, from: repoRoot.path),
85+
p.relative(workflowFilepath, from: rootDir.path),
8786
].map((path) => " - '$path'").join('\n');
8887

8988
final workflowContents = StringBuffer(

0 commit comments

Comments
 (0)