-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I got
Could not find bin/import_sorter.dart in package import_sorter.
when running
pre-commit run --all-files
or
flutter pub run import_sorter
But
flutter pub run import_sorter
works just fine
To Reproduce
-
added
import_sorter: ^4.6.0
to
pubspec.yaml
dev_dependencies -
installed pre-commit
-
create .pre-commit-config.yaml as below
repos:
- repo: https://github.com/fluttercommunity/import_sorter
rev: "master"
hooks:
- id: flutter-import-sorter
- run
pre-commit run --all-files
or
flutter pub run import_sorter
gives me
Could not find bin/import_sorter.dart in package import_sorter.
Expected behavior
same result as
flutter pub run import_sorter
Screenshots
If applicable, add screenshots to help explain your problem.
Meta Information:
- Dart Version: 3.5.4
import_sorterVersion: 4.6.0- Is it a Flutter project? yes
- What version of Flutter are you using (if flutter project): 3.24.5
Additional context
Add any other context about the problem here.
anisalibegic
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working