You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pub get reverts package install when checkout failed
Actual behavior
An invalid package remains in the pub-cache and pub get always failing until ~/.pub-cache folder is deleted
First attempt
westito@Westito-MBP1621 app % flutter pub get
Warning: You are using these overridden dependencies:
! widgetbook 2.4.1 from git [email protected]:widgetbook/widgetbook.git at 1721da in packages/widgetbook
Git error. Command: `git clone /Users/westito/.pub-cache/git/cache/widgetbook-adba694fa42067ee6d114a5ff69c73a2c76f654d /Users/westito/.pub-cache/git/widgetbook-1721da839411797f2dd9c728853590b96948e4cc`
stdout:
stderr: Cloning into '/Users/westito/.pub-cache/git/widgetbook-1721da839411797f2dd9c728853590b96948e4cc'...
done.
git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
exit code: 128
pub get failed (server unavailable) -- attempting retry 1 in 1 second...
Warning: You are using these overridden dependencies:
! widgetbook 2.4.1 from git [email protected]:widgetbook/widgetbook.git at 1721da in packages/widgetbook
Could not find a file named "pubspec.yaml" in "/Users/westito/.pub-cache/git/widgetbook-1721da839411797f2dd9c728853590b96948e4cc/packages/widgetbook".
Running "flutter pub get" in app...
pub get failed (66; Could not find a file named "pubspec.yaml" in "/Users/westito/.pub-cache/git/widgetbook-1721da839411797f2dd9c728853590b96948e4cc/packages/widgetbook".)
After install git-lfs
westito@Westito-MBP1621 app % flutter pub get
Warning: You are using these overridden dependencies:
! widgetbook 2.4.1 from git [email protected]:widgetbook/widgetbook.git at 1721da in packages/widgetbook
Could not find a file named "pubspec.yaml" in "/Users/westito/.pub-cache/git/widgetbook-1721da839411797f2dd9c728853590b96948e4cc/packages/widgetbook".
Running "flutter pub get" in app...
pub get failed (66; Could not find a file named "pubspec.yaml" in "/Users/westito/.pub-cache/git/widgetbook-1721da839411797f2dd9c728853590b96948e4cc/packages/widgetbook".)
The text was updated successfully, but these errors were encountered:
Environment
Problem
When package referenced as git repository and uses git-lfs
pub get
will fail also after installation.Expected behavior
pub get
reverts package install when checkout failedActual behavior
pub-cache
andpub get
always failing until~/.pub-cache
folder is deletedFirst attempt
After install git-lfs
The text was updated successfully, but these errors were encountered: