fluttercommunity / fluttercommunity/import_sorter

Pre-commit now throws a warning when targeting a specific branch

Open
#45 5 comments 0 reactions 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**

When running pre-commit with this config:

```yaml
repos:
- repo: https://github.com/fluttercommunity/import_sorter
rev: "master"
hooks:
- id: flutter-import-sorter
```

A warning is thrown:

```
[WARNING] The 'rev' field of repo 'https://github.com/fluttercommunity/import_sorter' appears to be a mutable reference (moving tag / branch). Mutable references are never updated after first install and are not supported. See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.
```

**Expected behavior**

I would like a tag to be added to GitHub which I can reference in my pre-commit config.

**Meta Information:**
- Dart Version: 2.10.5
- `import_sorter` Version: master
- Is it a Flutter project? Yes
- What version of Flutter are you using (if flutter project): 1.22.6

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.