Question regarding Git dependency support for analyzer plugins in Dart 3.10+

9 views
Skip to first unread message

Panagiotis Chaidos

unread,
Mar 26, 2026, 10:21:23 AM (8 days ago) Mar 26
to Dart Analyzer Discussion
Quick question about the new analysis_server_plugin architecture (Dart 3.10+).

Is there any undocumented way to use a Git dependency for a custom analyzer plugin in the top-level plugins: block of analysis_options.yaml?

The official docs only list support for three things:
 A pub version constraint
 A hosted custom pub server
 An absolute local path

We want to share an internal team linter via a private Git repo, exactly like we do with standard Git dependencies in pubspec.yaml.

If the new analysis server's synthetic package resolution genuinely doesn't support Git URLs yet, how are you all distributing private plugins across a team? Setting up a dedicated custom pub server feels like a heavy lift for one linter. Any clever workarounds?

Samuel Rawlins

unread,
Mar 26, 2026, 11:05:48 AM (8 days ago) Mar 26
to analyzer...@dartlang.org
This is not supported yet. https://github.com/dart-lang/sdk/issues/61794 is the issue.

--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discu...@dartlang.org.
To view this discussion visit https://groups.google.com/a/dartlang.org/d/msgid/analyzer-discuss/a647e0ce-db08-481a-9f7d-998434c474acn%40dartlang.org.
Reply all
Reply to author
Forward
0 new messages