[PR #4793] [MERGED] fix: flutter_ci #6445

Closed
opened 2026-03-23 22:23:15 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/4793
Author: @richardshiue
Created: 3/2/2024
Status: Merged
Merged: 3/2/2024
Merged by: @richardshiue

Base: mainHead: fix/flutter-ci


📝 Commits (2)

📊 Changes

1 file changed (+12 additions, -0 deletions)

View changed files

📝 .github/workflows/flutter_ci.yaml (+12 -0)

📄 Description

The flutter-action@2.13.0 release came out and as a result our Flutter CI broke due to the following error:

Git error. Command: `git clone --mirror https://github.com/richardshiue/modal_bottom_sheet /c/Users/runneradmin/.pub-cache\git\cache\modal_bottom_sheet-c8bd9add1d9a97d898a12bad7d8e2e5ff759af5c`
stdout: 
stderr: fatal: destination path '/c/Users/runneradmin/.pub-cache\git\cache\modal_bottom_sheet-c8bd9add1d9a97d898a12bad7d8e2e5ff759af5c' already exists and is not an empty directory.
exit code: 128

Solutions Attempted without downgrading to 2.12.0

  • enable flutter-action's cache feature (EDIT: cache isn't the same as pub cache)
  • perform dart pub cache clean (EDIT: error)
    No pub cache at /c/Users/runneradmin/.pub-cache.
    
  • use the PR ref instead of fork ref in offending pub package (EDIT: same error occurs)
    Git error. Command: `git clone --mirror https://github.com/jamesblasco/modal_bottom_sheet.git /c/Users/runneradmin/.pub-cache\git\cache\modal_bottom_sheet-6be0d271056787c04ebd0177877456d7070ef499`
    stderr: fatal: destination path '/c/Users/runneradmin/.pub-cache\git\cache\modal_bottom_sheet-6be0d271056787c04ebd0177877456d7070ef499' already exists and is not an empty directory.
    exit code: 128
    
  • specify pub_cache_path in flutter-action (EDIT: unsupported)
  • export PUB_CACHE env var prior to starting flutter-action. https://github.com/subosito/flutter-action/issues/278

Feature Preview


PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/4793 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 3/2/2024 **Status:** ✅ Merged **Merged:** 3/2/2024 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `fix/flutter-ci` --- ### 📝 Commits (2) - [`2e2e1d1`](https://github.com/AppFlowy-IO/AppFlowy/commit/2e2e1d1bad1acef7f0f39925daf98c5c4959e190) fix: flutter_ci - [`2e323cc`](https://github.com/AppFlowy-IO/AppFlowy/commit/2e323cce114bff08d31baff491b33ebf7f3763c4) fix: pub cache path ### 📊 Changes **1 file changed** (+12 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/flutter_ci.yaml` (+12 -0) </details> ### 📄 Description The [flutter-action@2.13.0](https://github.com/subosito/flutter-action/releases/tag/v2.13.0) release came out and as a result our Flutter CI broke due to the following error: ``` Git error. Command: `git clone --mirror https://github.com/richardshiue/modal_bottom_sheet /c/Users/runneradmin/.pub-cache\git\cache\modal_bottom_sheet-c8bd9add1d9a97d898a12bad7d8e2e5ff759af5c` stdout: stderr: fatal: destination path '/c/Users/runneradmin/.pub-cache\git\cache\modal_bottom_sheet-c8bd9add1d9a97d898a12bad7d8e2e5ff759af5c' already exists and is not an empty directory. exit code: 128 ``` ## Solutions Attempted without downgrading to 2.12.0 - enable `flutter-action`'s cache feature (EDIT: cache isn't the same as pub cache) - perform `dart pub cache clean` (EDIT: error) ``` No pub cache at /c/Users/runneradmin/.pub-cache. ``` - use the PR ref instead of fork ref in offending pub package (EDIT: same error occurs) ``` Git error. Command: `git clone --mirror https://github.com/jamesblasco/modal_bottom_sheet.git /c/Users/runneradmin/.pub-cache\git\cache\modal_bottom_sheet-6be0d271056787c04ebd0177877456d7070ef499` stderr: fatal: destination path '/c/Users/runneradmin/.pub-cache\git\cache\modal_bottom_sheet-6be0d271056787c04ebd0177877456d7070ef499' already exists and is not an empty directory. exit code: 128 ``` - specify `pub_cache_path` in flutter-action (EDIT: unsupported) - export `PUB_CACHE` env var prior to starting flutter-action. https://github.com/subosito/flutter-action/issues/278 ### Feature Preview <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [ ] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:23:15 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#6445
No description provided.