Closed mrgnhnt96 closed 10 months ago
Thanks @mrgnhnt96 for the PR, I think it's a good idea.
But if the idea is to deprecate the :main
syntax in a future version, could you please redo your PR this way:
bin/main.dart
to bin/import_sorter.dart
in a first commit.bin/main.dart
that points to bin/import_sorter.dart
, and also includes the deprecation warning.Then please force push your branch.
That way, when we remove support for the :main
syntax, we'll just have to delete the bin/main.dart
file. It will also keep the deprecation warning isolated, not mixed with the rest of the logic.
Also, please add a third commit that removes references to :main
from the documentation. See all current occurrences at https://github.com/search?q=repo%3Afluttercommunity%2Fimport_sorter%20%3Amain&type=code
@vkammerer once this is merged can we make a new release to pub.dev?
@mrgnhnt96 Thanks for updating your PR.
Could you look into why the import_sorter
Github action is failing?
https://github.com/fluttercommunity/import_sorter/actions/runs/7592158197/job/20790428773
@mrgnhnt96 Thanks for updating your PR.
Could you look into why the
import_sorter
Github action is failing? https://github.com/fluttercommunity/import_sorter/actions/runs/7592158197/job/20790428773
I hadn't run import sorter lol, I just fixed it. It should pass now
Thanks @mrgnhnt96 , that made the tests pass.
I'll update the CHANGELOG and prepare a release to pub.dev
@slightfoot We would like to make a new release to pub.dev. Would you be able to help us with it?
This was finally published on pub.dev, under the version 5.0.0-releasecandidate.1
The current command to run import sorter is
With this change, the
:main
can be omitted, making the command more intuitiveThe
:main
command will not be removed to avoid breaking existing projects using import_sorter, but could be considered in the future. I've added a deprecated warning wheneverimport_sorter:main
is used.