Fwd: openSUSE: golang packaging

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: openSUSE: golang packaging

Matwey V. Kornilov
Hello,

I am really stuck with %gobuild usage.

Here

https://build.opensuse.org/package/view_file/server:database/influxdb/influxdb.spec?expand=1

I need to pass the following to the linker

-ldflags="-X main.version=1.2.3"

and I am trying to use

%gobuild -ldflags="-X main.version=1.2.3" cmd/...

as it supposed to work, but it doesn't.

--
With best regards,
Matwey V. Kornilov
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]