Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for recursive dep graph #137

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ramantehlan
Copy link

@ramantehlan ramantehlan commented Mar 8, 2020

This PR is to address Issue #89 and to add support to check recursively if the project and test dependencies are packaged for Debian or not.

  • It will add a -r sub-flag to current estimate flag, which will be separate from plain estimate command.
  • It will add a -format sub-flag, to supports three output formats ("Graph", "Map", "List")

Usage

$ dh-make-golang estimate -r github.com/zyedidia/micro/cmd/micro

$ dh-make-golang estimate -format map -r github.com/zyedidia/micro/cmd/micro

I have also created a standalone tool for it, which you can check out here.

@ramantehlan
Copy link
Author

@rajudev can you review, or assign it to the maintainer for the review. For some reason Github don't show me that option anymore.

@utkarsh2102
Copy link
Member

Hi @anthonyfok,
Could you take a look at this?

fmt.Printf("Fetching dependencies of %s | It may take a while.\n\n", aurora.Bold(aurora.BrightBlue(importpath)))

// List | Graph | Tree
m, err := gocheckdeb.GetDep(importpath, "imports", formatType)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of using many third-party libraries. Especially this library has some overlap functions with dh-make-golang.

@@ -12,6 +12,8 @@ import (
"sort"
"strings"

"github.com/logrusorgru/aurora"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this library is not packaged in debian too. it's not so important to have colorful output...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update: golang-github-logrusorgru-aurora-dev
entered Debian on 2020-07-10

@@ -12,6 +12,8 @@ import (
"sort"
"strings"

"github.com/logrusorgru/aurora"
"github.com/ramantehlan/GoCheckDeb/pkg/gocheckdeb"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we need to get github.com/ramantehlan/GoCheckDeb packaged for Debian first. 🤔

@anthonyfok anthonyfok force-pushed the master branch 2 times, most recently from f0abee6 to 989837a Compare March 22, 2024 09:47
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.

None yet

4 participants