Hi all,
can someone help me and find my mistake?
Package rke:
https://build.opensuse.org/package/show/home:ojkastl_buildservice/rke
main.go allows setting the version:
https://github.com/rancher/rke/blob/master/main.go#L18
I have added this flag to the %gobuild but still the version is reported as "dev":
%gobuild -mod=vendor -ldflags="-X main.Version=%{version}" .
The grafana package used a "manual build" without the macro to set this (this is
where I stole the syntax from), but I thought handing over parameters like
-mod=vendor worked with %gobuild in the meantime?
Sadly enough, this is not mentioned at all in the Packaging Go documentation...
https://en.opensuse.org/openSUSE:Packaging_Go
But it states:
> As I know, %goprep, %gofix, %gobuild, %goinstall, %gosrc, %gotest are macros that can not be quoted because they allow arguments.
which sounds like %gobuild should except arguments?
Thanks in advance!
Kind Regards,
Johannes
--
Johannes Kastl
Linux Consultant & Trainer
Tel.: +49 (0) 151 2372 5802
Mail: kastl(a)b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg
http://www.b1-systems.de
GF: Ralph Dehner
Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537