Git Product home page Git Product logo

go-depchart's Introduction

go-depchart

This is a quick-and-dirty tool for drawing graphs of golang module relationships.

Its purpose is to visualize what kind of relationship downstream repos have to an upstream repo. The intention is that this should be useful information for:

  • planning changes in the upstream repo and seeing what their impact will be;
  • to help coordinate propagating any changes down through the graph;
  • and to see the overall "health" of the graph (how many different versions does it contain?).

The level of polish of this tool is currently not high. Certain behaviors are hardcoded. Some setup is required.

Example Output

Here's an example of kind of the output one might see from this tool:

example graph

In this example, there were two "start" repos (you'll seem them relatively to the left), and one "focus" repo (all the way on the right).

As you can see, it's entirely possible to end up with six different versions of an upstream repo being referenced by just two downstreams (intermediate modules can cause fanout).

If you looked at this example in your own projects, probably what you'd want to do is: find whichever module's subgraph has the most versions inside of it, and then start upgrading things downstream of those to make the graph get smaller. Smaller lists of versions being used within each module is a happer graph: it means you'll be doing less maintinence and have more freedom to move.

License

SPDX-License-Identifier: Apache-2.0 OR MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.