fluttercommunity / fluttercommunity/import_sorter

Could not find bin/import_sorter.dart in package import_sorter.

Open
#83 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Dart
Stars
183
Forks
42
PR merge metrics
No merged PRs in 30d

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**
1. added
import_sorter: ^4.6.0
to
pubspec.yaml
dev_dependencies

2. installed pre-commit

3. create .pre-commit-config.yaml as below
```
repos:
- repo: https://github.com/fluttercommunity/import_sorter
rev: "master"
hooks:
- id: flutter-import-sorter
```

4. 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_sorter` Version: 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.