openSUSE / golang-packaging

golang packaging tool for openSUSE
GNU General Public License v3.0
6 stars 13 forks source link

Escaping rules for %gobuild extra options #17

Closed matwey closed 4 years ago

matwey commented 6 years ago

Hi,

I created an issue in BOO: https://bugzilla.opensuse.org/show_bug.cgi?id=1079998

The issue is that there is no way (in my opinion. probably there is some cryptic not obvious way) to pass -ldflags="-X main.version=1.2.3" as a single command line argument. It is important that we have to keep space between X and main.version and prevent process_build from rearranging arguments.

cyphar commented 4 years ago

Fixed by #16.