shorebirdtech / shorebird

Code Push for Flutter and other tools for Flutter businesses.
https://shorebird.dev
Other
1.97k stars 118 forks source link

fix: Because shorebird_cli depends on googleapis_auth from git which doesn't exist #1944

Closed EngALAlfy closed 3 weeks ago

EngALAlfy commented 3 weeks ago

Description

A clear and concise description of what the bug is when install shorebird in windows 10 by

Set-ExecutionPolicy RemoteSigned -scope CurrentUser # Needed to execute remote scripts
iwr -UseBasicParsing 'https://raw.githubusercontent.com/shorebirdtech/install/main/install.ps1'|iex

Got error

Because shorebird_cli depends on googleapis_auth from git which doesn't exist (Could not find git ref '647f96d5ffdae63e41aeea091c34acfffff533e7' (fatal: bad object 647f96d5ffdae63e41aeea091c34acfffff533e7)),

Steps To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected Behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

image

Additional Context

Add any other context about the problem here.

bryanoltman commented 3 weeks ago

We've had a couple reports of this. I'm not exactly sure the cause, but the commit it's saying it could not find definitely exists (https://github.com/shorebirdtech/googleapis.dart/commit/647f96d5ffdae63e41aeea091c34acfffff533e7)

bryanoltman commented 3 weeks ago

I wonder if our fork of googleapis.dart is confusing pub. @EngALAlfy, if you remove all googleapis folders in your pub cache ~/.pub-cache/hosted/pub.dev/ and try this again, does that fix the issue?

EngALAlfy commented 3 weeks ago

Yes I have remove all related files and folders in C:\Users\alalfy\AppData\Local\Pub\ It is work thanks

bryanoltman commented 3 weeks ago

Seems like we should consider unforking the repository. Thanks for the report! We'll try to address this next week.