fix: correct git errors in flutter plugin
Metadata
Current evaluation
Merged #5264 fixed Flutter plugin Git errors using Flutter's suggested workaround, closing #5258; released in Snapcraft 8.6.3 and 8.7.1.
Resolution: closed resolved
Reason: PR #5264 was merged in commit acf0ce744, applying the workaround from flutter/flutter#163308 to correct Git failures during Flutter precache. It explicitly closed canonical/snapcraft#5258.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint`?
- [x] Have you successfully run `make test`?
---
This PR uses the [workaround suggested here](https://github.com/flutter/flutter/issues/163308#issuecomment-2661479464). It's a dirty workaround, but it seems like the Flutter development team is going to fix this issue as a bug so this should only be around until upstream is fixed.
Closes #5258
CRAFT-4149.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #5264 fixed Flutter plugin Git errors using Flutter's suggested workaround, closing #5258; released in Snapcraft 8.6.3 and 8.7.1. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #5264 (commit 3e9d22f7c), fixing Flutter plugin precache Git branch-reference errors with Flutter's suggested workaround; released in Snapcraft 8.6.3 and 8.7.1. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #5264, applying Flutter’s suggested workaround for git branch-reference errors during Flutter plugin precache. The fix closed #5258 and shipped in Snapcraft 8.6.3 and 8.7.1. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix for git errors in the Flutter plugin. Applies a temporary workaround for an upstream Flutter bug, closes #5258, and passed CI checks following four reviewer approvals. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a temporary workaround to fix git errors in the Flutter plugin, closing #5258 and addressing CRAFT-4149. The change mitigates upstream Flutter bug #163308 until the upstream team implements a permanent fix. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#5258
(confidence 100%)
The precache failure report explicitly closed by PR #5264.
-
Related To:
flutter#163308
(confidence 99%)
Its suggested Git workaround was implemented by PR #5264.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5267 fix: correct git errors in flutter plugin | snapcraft | merged | Merged #5267, cherry-picking #5264 into the 8.6 branch to fix Flutter precache git errors; released in Snapcraft 8.6.3 and 8.7.1. | |
| #5258 Flutter plugin breaks during precache | snapcraft | closed | Fixed by merged PR canonical/snapcraft#5264 (commit acf0ce744), correcting Flutter precache Git branch references. Released in Snapcraft 8.6.3 and 8.7.1. | |
| #5756 Drop the flutter plugin's git workaround | snapcraft | closed | Removed the temporary Flutter git workaround after the upstream Flutter bug was fixed; PR #5838 merged as commit 729811eea and closed #5756. | |
| #5838 chore: drop flutter git plugin's workaround | snapcraft | merged | Merged #5838 (commit 729811eea), removing the temporary Flutter git workaround from #5264 after Flutter fixed the upstream bug; resolved #5756. |