It's available in go list as well, e.g.

$ go list -f '{{if not .Standard}}{{ .ImportPath }}{{end}}'
github.com/snapcore/snapd/snap bytes
github.com/snapcore/snapd/snap
$

Cheers,
mwh

On Mon, 27 Aug 2018 at 03:33, Michael Stapelberg <stapelb...@debian.org>
wrote:

> There is a way, dh-make-golang does it:
> https://github.com/Debian/dh-make-golang/blob/f0afc0f7169eb4f261449d8c4bd6fc7950583617/make.go#L177-L192
>
> On Sun, Aug 26, 2018 at 12:34 PM, Shengjing Zhu <i...@zhsj.me> wrote:
>
>> On Sun, Aug 26, 2018 at 5:44 PM Michael Hudson-Doyle
>> <michael.hud...@canonical.com> wrote:
>> >
>> > I've forgotten everything about this code even though I wrote it, but
>> wouldn't it be better to filter out the standard library dependencies?
>> >
>>
>> For golang-go, currently it uses std library to producing the
>> Built-Using for golang-go compiler. For gccgo, there's no such need
>> because it will depends libgo.
>> So for gccgo, it's true that we can filter out the std library. But I
>> doubt if there's clean way...
>>
>> --
>> Best regards,
>> Shengjing Zhu
>>
>> _______________________________________________
>> Pkg-go-maintainers mailing list
>> pkg-go-maintain...@alioth-lists.debian.net
>>
>> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-go-maintainers
>
>
>
>
> --
> Best regards,
> Michael
> _______________________________________________
> Pkg-go-maintainers mailing list
> pkg-go-maintain...@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to