[hooks_runner] Include offending file path in 'File modified during build' error
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Read pkgs/hooks_runner/lib/src/build_runner/build_runner.dart at the two cited call sites (lines 603–613 and 919–931), then check how modifiedDuringBuild is returned by dependenciesHashes.updateHashes(...). Confirm the reported failure can be reproduced before changing anything; done means both error messages identify the offending file path.
Written by the indexing model from the issue text.
Description
In build_runner.dart and lines 919-931, dependenciesHashes.updateHashes(...) already returns final modifiedDuringBuild (the offending Uri), but both call sites ignore it and only log 'File modified during build. Build must be rerun.'.
Printing modifiedDuringBuild there would make it immediately obvious which file caused the rebuild failure.
Context: https://github.com/dart-lang/native/issues/3837
Note: This bug is AI generated. I've reviewed it and it makes sense, but I haven't attempted to repro. Make sure the bug repros before trying to fix it.
- Dominant language
- Dart
- Stars
- 280
- Forks
- 166
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 35
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dart-lang/native
-
lang-java needs-triage package:jni package:jni_flutter package:jnigen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days
-
lang-java needs-triage package:jni package:jni_flutter package:jnigen
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 2 days
-
lang-java needs-triage package:jni package:jni_flutter package:jnigen
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 2 days
-
needs-triage package:ffigen
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
needs-triage package:ffigen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
All issues in dart-lang/native
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
finamp-app/finamp#1920 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
package:skills
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
act.await-dev-pr co.request d.new-feature dev.flavors e1-hours p2-medium st.blocked t.cli-tools target.web
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
flutter/website#14165 · 1 comment ·
Maintainers usually reply within 1 day