google / google/grinder.dart

Tasks can't depend on re-assigned task names

Open
#338 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
266
Forks
36
Avg merge
23h 25m
Merged PRs (30d)
2

Description

The following fails with ```Task `after` references invalid task method `before` as a dependency```:

```dart
import 'package:grinder/grinder.dart';

main(List args) => grind(args);

void before() => print("before");

@Task('')
const beforeTask = before;

@Depends(beforeTask)
@Task('')
void after() {}
```

Assigning one task to another would otherwise be one way to work around #337.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.