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

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

Open
xinwo opened this issue Dec 4, 2024 · 1 comment
Open

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

xinwo opened this issue Dec 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xinwo
Copy link

xinwo commented Dec 4, 2024

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
  1. 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.

@xinwo xinwo added the bug Something isn't working label Dec 4, 2024
@vkammerer
Copy link
Collaborator

This is something that could be handled by the next maintainer once #84 is resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants