[pkg-go] Bug#839108: Bug#839108: dh-golang: Please document behavior and variables used

2017-10-10 Thread Michael Stapelberg
Thanks for the hint, I wasn’t aware of that! I’ll document the
variables and upload a new version.

On Sat, Sep 23, 2017 at 12:08 PM, Shengjing Zhu  wrote:
> On Tue, 20 Jun 2017 09:49:26 +0200 Michael Stapelberg
>  wrote:
>> Hi Guillem,
>>
>> Thanks for your report!
>>
>> Guillem Jover  writes:
>> > Please document at least the variables from the environment that
>> > directly affect the behavior such as GOPATH, DH_GOPKG,
>> > DH_GOLANG_INSTALL_ALL, DH_GOLANG_INSTALL_EXTRA, DH_GOLANG_BUILDPKG,
>> > DH_GOLANG_GO_GENERATE. And the field control field Go-Import-Path.
>>
>> What’s the correct place to document them? Stuffing this buildsystem
>> related documentation into the dh_golang(1) manpage seems inappropriate,
>> as that manpage should only document the dh_golang executable, right?
>
> Add to man 3 Debian::Debhelper::Buildsystem::golang?
>
> If you add the docs to lib/Debian/Debhelper/Buildsystem/golang.pm, the
> auto generated manpage is
> man3/Debian::Debhelper::Buildsystem::golang.3pm.gz
>
> --
> Best regards,
> Shengjing Zhu
>
> ___
> Pkg-go-maintainers mailing list
> Pkg-go-maintainers@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers



-- 
Best regards,
Michael

___
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

[pkg-go] Bug#839108: Bug#839108: dh-golang: Please document behavior and variables used

2017-06-21 Thread Ian Campbell
On Wed, 2017-06-21 at 01:39 -0700, Michael Stapelberg wrote:
> 
> 
> > On Wed, Jun 21, 2017 at 1:21 AM, Ian Campbell  wrote:
> > On Wed, 2017-06-21 at 06:28 +0200, Guillem Jover wrote:
> > > Hi!
> > >
> > > On Tue, 2017-06-20 at 09:49:26 +0200, Michael Stapelberg wrote:
> > > > > > > > Guillem Jover  writes:
> > > > > Please document at least the variables from the environment that
> > > > > directly affect the behavior such as GOPATH, DH_GOPKG,
> > > > > DH_GOLANG_INSTALL_ALL, DH_GOLANG_INSTALL_EXTRA, DH_GOLANG_BUILDPKG,
> > > > > DH_GOLANG_GO_GENERATE. And the field control field Go-Import-Path.
> > > >
> > > > What’s the correct place to document them? Stuffing this buildsystem
> > > > related documentation into the dh_golang(1) manpage seems inappropriate,
> > > > as that manpage should only document the dh_golang executable, right?
> > >
> > > Yeah, that was my initial reaction as well. And I'm not sure where
> > > the buildsystem and sequence behavior is supposed to be documented, or
> > > whether debhelper maintainers would recommend doing so, so I've CCed
> > > them in case they have any input.
> > >
> > > OTOH, dh_golang(1p) already contains a brief note about the golang
> > > buildsystem, so perhaps that man page is not such a bad idea after
> > > all? Also because that's the entry point for the command, but yeah
> > > as mentioned above I also see why it feels wrong.
> > 
> > Are DH_GOLANG_* not as specific to dh_golang as the name would suggest?
> 
> They’re specific to the debhelper golang buildsystem
> (/usr/share/perl5/Debian/Debhelper/Buildsystem/golang.pm). Should
> they be named differently?

I hadn't realised there was that distinction between the library and
the tool, so I don't know, you should probably ignore me ;-)

Ian.

___
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

[pkg-go] Bug#839108: Bug#839108: dh-golang: Please document behavior and variables used

2017-06-21 Thread Michael Stapelberg
On Wed, Jun 21, 2017 at 1:21 AM, Ian Campbell  wrote:

> On Wed, 2017-06-21 at 06:28 +0200, Guillem Jover wrote:
> > Hi!
> >
> > On Tue, 2017-06-20 at 09:49:26 +0200, Michael Stapelberg wrote:
> > > > > Guillem Jover  writes:
> > > > Please document at least the variables from the environment that
> > > > directly affect the behavior such as GOPATH, DH_GOPKG,
> > > > DH_GOLANG_INSTALL_ALL, DH_GOLANG_INSTALL_EXTRA, DH_GOLANG_BUILDPKG,
> > > > DH_GOLANG_GO_GENERATE. And the field control field Go-Import-Path.
> > >
> > > What’s the correct place to document them? Stuffing this buildsystem
> > > related documentation into the dh_golang(1) manpage seems
> inappropriate,
> > > as that manpage should only document the dh_golang executable, right?
> >
> > Yeah, that was my initial reaction as well. And I'm not sure where
> > the buildsystem and sequence behavior is supposed to be documented, or
> > whether debhelper maintainers would recommend doing so, so I've CCed
> > them in case they have any input.
> >
> > OTOH, dh_golang(1p) already contains a brief note about the golang
> > buildsystem, so perhaps that man page is not such a bad idea after
> > all? Also because that's the entry point for the command, but yeah
> > as mentioned above I also see why it feels wrong.
>
> Are DH_GOLANG_* not as specific to dh_golang as the name would suggest?
>

They’re specific to the debhelper golang buildsystem
(/usr/share/perl5/Debian/Debhelper/Buildsystem/golang.pm). Should they be
named differently?


>
> Ian.
>



-- 
Best regards,
Michael
___
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

[pkg-go] Bug#839108: Bug#839108: dh-golang: Please document behavior and variables used

2017-06-21 Thread Ian Campbell
On Wed, 2017-06-21 at 06:28 +0200, Guillem Jover wrote:
> Hi!
> 
> On Tue, 2017-06-20 at 09:49:26 +0200, Michael Stapelberg wrote:
> > > > Guillem Jover  writes:
> > > Please document at least the variables from the environment that
> > > directly affect the behavior such as GOPATH, DH_GOPKG,
> > > DH_GOLANG_INSTALL_ALL, DH_GOLANG_INSTALL_EXTRA, DH_GOLANG_BUILDPKG,
> > > DH_GOLANG_GO_GENERATE. And the field control field Go-Import-Path.
> > 
> > What’s the correct place to document them? Stuffing this buildsystem
> > related documentation into the dh_golang(1) manpage seems inappropriate,
> > as that manpage should only document the dh_golang executable, right?
> 
> Yeah, that was my initial reaction as well. And I'm not sure where
> the buildsystem and sequence behavior is supposed to be documented, or
> whether debhelper maintainers would recommend doing so, so I've CCed
> them in case they have any input.
> 
> OTOH, dh_golang(1p) already contains a brief note about the golang
> buildsystem, so perhaps that man page is not such a bad idea after
> all? Also because that's the entry point for the command, but yeah
> as mentioned above I also see why it feels wrong.

Are DH_GOLANG_* not as specific to dh_golang as the name would suggest?

Ian.

___
Pkg-go-maintainers mailing list
Pkg-go-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers