Hi Kevin,

As I replied on Gophers Slack:

go list -m all will give you information about dependencies. Add -json
to give you that in a more easily parsed format.

https://github.com/rogpeppe/gohack can be used to do what you want
with respect to checking out from VCS using the -vcs flag in
combination with the GOHACK env var appropriate set for the module in
question.


Paul

On Wed, 12 Jan 2022 at 18:58, Kevin Burke <ke...@burke.dev> wrote:
>
> Hi,
> Sometimes I just want to inspect third party code for a library, and/or edit 
> it.
>
> I'm looking for a tool that will read all of the dependencies in a go.mod 
> file and then check out all of the right versions of all of the source code 
> into the right places in a $GOPATH. Does that exist?
>
> Failing that, is there a tool that will read a go.mod file and give me 
> version information about each dependency? I see packages.Load, but that 
> doesn't seem super targeted for the use case; if it's the best that exists 
> then I'll probably make it work.
>
> Kevin
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/18fca322-5913-4cc8-bbd3-fc84f4f0e673n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CACoUkn7R8%3DikgwUL%3DxGaL%3D7_-o6NMPcHK_-a28nO2m1KvrM58g%40mail.gmail.com.

Reply via email to