Saturday, January 28, 2023

Re: new sysutils/gitlab-cli

On 2023/01/28 15:04, Klemens Nanni wrote:
> 28.01.2023 14:52, Laurent Cheylus пишет:
> > Build and tests OK on amd64.
>
> Thanks.
>
> > Could you set the real build date with MODGO_LDFLAGS ?
> >
> > _BUILD_DATE = $$(date +%Y-%m-%d)
> > MODGO_LDFLAGS = -X main.build=${_BUILD_DATE} \
> > -X main.version=${V}
> >
> > With this modification, my build is OK :
> >
> > $ /usr/obj/ports/gitlab-cli-1.24.1/fake-amd64/usr/local/bin/glab version
> > glab version 1.24.1 (2023-01-28)
>
> I deliberately set it to a fixed string such that package contents don't
> change between builds.
>
> Do you encounter any issues?
>

You could remove '-X main.build' completely which gives this which I
think everyone will be happy with:

$ glab version
glab version 1.24.1

OK

No comments:

Post a Comment