forked from firka/firka
fixin maybe 2
This commit is contained in:
@@ -57,14 +57,15 @@ void main() async {
|
||||
ran = true;
|
||||
}
|
||||
|
||||
if (_isarOutOfDate(p.join(p.dirname(root), "firka_common")) || _isarGeneratedFilesMissing(p.join(p.dirname(root), "firka_common"))) {
|
||||
final inputs = _isarInputs(root);
|
||||
final hashes = _computeHashes(root, inputs);
|
||||
var common = p.join(p.dirname(root), "firka_common");
|
||||
if (_isarOutOfDate(common) || _isarGeneratedFilesMissing(common)) {
|
||||
final inputs = _isarInputs(common);
|
||||
final hashes = _computeHashes(common, inputs);
|
||||
stdout.writeln(
|
||||
'Isar generated dart files out of date or missing, running build_runner...',
|
||||
);
|
||||
await _run('dart', ['run', 'build_runner', 'build'], root);
|
||||
_updateLockWithHashes(root, 'isar', hashes);
|
||||
await _run('dart', ['run', 'build_runner', 'build'], common);
|
||||
_updateLockWithHashes(common, 'isar', hashes);
|
||||
ran = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user