We have this in the project makefile..

GOFLAGS = -ldflags "-X main.version=$(shell git describe --tags)"

..

On Wed, Nov 8, 2017 at 7:44 AM, Damo Brisbane <dhatche...@gmail.com> wrote:

> attached, ok?
>
> On Wed, Nov 8, 2017 at 5:33 AM, Alan McKinnon <alan.mckin...@gmail.com>
> wrote:
>
>> On 07/11/2017 21:10, Damo Brisbane wrote:
>> > Hi,
>> >
>> > I am getting an error on custom fabio-1.5.2.ebuild
>> > <https://github.com/damobrisbane/damo-overlay/blob/master/
>> net-proxy/fabio/fabio-1.5.2.ebuild> -
>> > "Not a git repository (or any of the parent directories)..." I've been
>> > looking on web, trying some things, but still message is coming up,
>> > appreciate suggestions. Note package is installing fine, just not sure
>> > how to clean up this message.
>> >
>> >  Thanks in advance:
>>
>>
>>
>>
>> Please post the ebuild. That's a git error (not a portage error) and it
>> means you are trying to run "git <some_function>" without running "git
>> init" first
>>
>>
>> >
>> >
>> >
>> >>>> Emerging (2 of 2) net-proxy/fabio-1.5.2::damo-overlay
>> >  * fabio-1.5.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...
>> >                                              [ ok ]
>> >  * Adding group 'fabio' to your system ...
>> >  *  - Groupid: next available
>> >  * Adding user 'fabio' to your system ...
>> >  *  - Userid: 116
>> >  *  - Shell: /sbin/nologin
>> >  *  - Home: /var/lib/fabio
>> >  *  - Groups: fabio
>> >  *  - GECOS: added by portage for fabio
>> >  *  - Creating /var/lib/fabio in /
>> >>>> Unpacking source...
>> >>>> Source unpacked in /tmp/portage/net-proxy/fabio-1.5.2/work
>> >>>> Preparing source in
>> > /tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2 ...
>> >>>> Source prepared.
>> >>>> Configuring source in
>> > /tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2 ...
>> >>>> Source configured.
>> >>>> Compiling source in
>> > /tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2 ...
>> > make -j5 -C
>> > /tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2/src/gith
>> ub.com/fabiolb/fabio
>> > <http://github.com/fabiolb/fabio> install
>> > make: Entering directory
>> > '/tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2/src/git
>> hub.com/fabiolb/fabio
>> > <http://github.com/fabiolb/fabio>'
>> > *fatal: Not a git repository (or any of the parent directories): .git*
>> > GOGC=off go install -ldflags "-X main.version="
>> > make: Leaving directory
>> > '/tmp/portage/net-proxy/fabio-1.5.2/work/fabio-1.5.2/src/git
>> hub.com/fabiolb/fabio
>> > <http://github.com/fabiolb/fabio>'
>> >>>> Source compiled.
>> >
>>
>>
>> --
>> Alan McKinnon
>> alan.mckin...@gmail.com
>>
>>
>>
>

Reply via email to