Getting detailed package info with x/packages


I was very excited when I saw that x/packages allows to read package info independently from source location. This feature would be very important for those who want to use tools like buck or bazel which maintain non-canonical layout for generated and downloaded sources as well as being able to write tools that explore go sources without having to have all of them in the GOPATH.

After initial exploration I had couple of question which I was hoping to get clarification on:

  • What is intended way of getting detailed information similar to what build.Imports provides? (e.g. list of cgo files, compiler, linker flags, etc)
  • Is there any way to load package info without going recursively into all dependencies?

Would appreciate any help on this!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.