Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit fails in VSCode due to version solving failed in flutter project #29

Closed
Peetee06 opened this issue Oct 13, 2023 · 1 comment

Comments

@Peetee06
Copy link

When committing via the VSCode built in source control panel in my flutter project, the pre-commit fails with following error:

Because emotely depends on flutter_driver from sdk which doesn't exist (the Flutter SDK is not available), version solving failed.

Flutter users should run `flutter pub get` instead of `dart pub get`.

I was able to fix this by replacing the content of the git pre-commit file

#!/bin/sh
exec dart run dart_pre_commit # specify custom options here

with

#!/bin/sh
exec flutter pub run dart_pre_commit # specify custom options here

This might be worth adding to the documentation.

@Skycoder42
Copy link
Owner

Add the flutter variants to README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants