Skip to content

Conversation

@tisohjung
Copy link

#4732

mermaid version of deps command
pub deps -s mermaid

below are the expected outputs from deps_test.dart

  1. deps -s mermaid
          %% Dart SDK 3.1.2+3
          graph LR
            %% Root
            myapp["myapp 0.0.0"]

            %% Direct dependencies
            from_path["from_path 1.2.3"]
            normal["normal 1.2.3"]
            overridden["overridden 2.0.0"]

            myapp --> from_path
            myapp --> normal
            myapp --> overridden

            %% Dev dependencies
            unittest["unittest 1.2.3"]
          
            myapp -. dev .-> unittest

            %% Dependency overrides
            override_only["override_only 1.2.3"]
          
            myapp -. override .-> overridden
            myapp -. override .-> override_only

            %% Transitive dependencies
            circular_a["circular_a 1.2.3"]
            circular_b["circular_b 1.2.3"]
            dev_only["dev_only 1.2.3"]
            other["other 1.0.0"]
            shared["shared 1.2.3"]
            transitive["transitive 1.2.3"]

            %% Normal dependency chain
            normal --> circular_a
            normal --> transitive

            %% Dev dependency chain
            unittest --> dev_only
            unittest --> shared
          
            %% Circular dependencies
            circular_a --> circular_b
            circular_b --> circular_a
          
            %% Transitive chains
            transitive --> shared
            shared --> other
            other --> myapp
Loading
  1. deps -s mermaid --no-dev
          %% Dart SDK 3.1.2+3
          graph LR
            %% Root
            myapp["myapp 0.0.0"]

            %% Direct dependencies
            from_path["from_path 1.2.3"]
            normal["normal 1.2.3"]
            overridden["overridden 2.0.0"]

            myapp --> from_path
            myapp --> normal
            myapp --> overridden

            %% Dependency overrides
            override_only["override_only 1.2.3"]

            myapp -. override .-> overridden
            myapp -. override .-> override_only

            %% Transitive dependencies
            circular_a["circular_a 1.2.3"]
            circular_b["circular_b 1.2.3"]
            other["other 1.0.0"]
            shared["shared 1.2.3"]
            transitive["transitive 1.2.3"]

            %% Transitive chains from direct deps
            normal --> circular_a
            normal --> transitive

            %% Circular dependencies
            circular_a --> circular_b
            circular_b --> circular_a

            %% Transitive dependency chains
            transitive --> shared
            shared --> other
            other --> myapp
Loading

  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

Note: The Dart team is trialing Gemini Code Assist. Don't take its comments as final Dart team feedback. Use the suggestions if they're helpful; otherwise, wait for a human reviewer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant