Giter Club home page Giter Club logo

getgodependencyhierarchy's Introduction

getGoDependencyHierarchy

A utility for getting the dependencies of a specific package in a Go module.

Example using Zsh on MacOS

Looking for github.com/spf13/cobra with tag v1.1.1 in grokify/go-aha.
A module is directly using1 the module which is directly under it.

  $ git clone 'https://github.com/grokify/go-aha.git'
 
  $ cd go-aha
 
  $ git checkout v0.2.3

  $ getGoDependencyHierarchy 'github.com/spf13/[email protected]'
            github.com/grokify/go-aha
                       ⬇
       github.com/grokify/[email protected]
                       ⬇
    github.com/wcharczuk/[email protected]+incompatible
                       ⬇
      github.com/blend/[email protected]
                       ⬇
          github.com/spf13/[email protected]

Timeout feature

By default the script will timeout after 16 seconds. In order to change the default time limit (in seconds) set the $GGDH_TIMEOUT env var.

Note: Depending on your shell, this might need to be exported.

Limited support for Incompatible Packages

Scenario Description Support
Chain starts with an incompatible pkg
Incompatible pkgs inside the chain ✔️
Chain ends with an incompatible pkg ✔️

Footnotes

  1. Directly using means the module is directly inside go.mod not just go.sum.

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.