http://bugzilla.suse.com/show_bug.cgi?id=1114209 http://bugzilla.suse.com/show_bug.cgi?id=1114209#c6 --- Comment #6 from Aleksa Sarai <asarai@suse.com> --- (In reply to Jeff Kowalczyk from comment #1)
Can you provide a syntax example of declaring dependency on a specific version of golang(API)? We are seeing the issue now with the upstream release versions of some packages having soft (gofmt) or hard (GoPkg.lock -> go.mod) dependency on go1.10 or go1.11.
Basically, you would do: BuildRequires: golang(API) = 1.10 % hard or BuildRequires: golang(API) >= 1.9 % soft Historically this was actually a not-very-good decision, but now that we have actually designed the packaging around pinning the "API" version it makes more sense. The problem is that having golang(API) provided by both go and go1.10 causes OBS to get confused (depending on what repos its using, the prjconf and so on).
Use of golang(API) is not mentioned in https://en.opensuse.org/openSUSE:Packaging_Go, and I'll document the example there.
Yeah that needs to be rewritten basically, though I would really like us to first have a discussion on how golang-packaging should be reworked to actually be useful. There was a bug about this opened recently -- let me see if I can find the bug number. -- You are receiving this mail because: You are on the CC list for the bug.