invertase / dart_custom_lint

💡 Easily write powerful Dart & Flutter lint rules for your projects or for users of your packages.
https://pub.dev/packages/custom_lint
Apache License 2.0
288 stars 65 forks source link

SocketException: Connection failed in Docker on CI #178

Open tjarvstrand opened 1 year ago

tjarvstrand commented 1 year ago

Describe the bug

There seems to be some incompatibility between custom_lint and Flutter when running Linux in Docker, at least in CI (I tried both GH actions and Circle CI, Flutter versions 3.10.6 and 3.13.0). Runs fail with SocketException: Connection failed (OS Error: Cannot assign requested address, errno = 99), address = ::1, port = 42977 (the port number varies)

Example run in GH actions: https://github.com/tjarvstrand/custom_lints_test/actions/runs/5910988866/job/16033101882

To Reproduce

Here's minimal example repo that reproduces the issue: https://github.com/tjarvstrand/custom_lints_test

Removing Flutter references from pubspec.yaml allows the check workflow to pass.

Expected behavior The check should pass even with flutter as a dependency.

cmenkemeller commented 1 year ago

Same issue here

phoenixm103 commented 1 year ago

Any update on this issue?