On Thu, Feb 27, 2020 at 2:05 AM Johannes Kastl <kastl@b1-systems.de> wrote:
Good morning ladies and gentlemen,
is there any documentation on how to exactly require a specific version of go1.X (use go1.10, not any later version? Use go1.12 or later?)?
I am (once again) new to packaging golang packages, and have some that seem to require newer versions, e.g. go1.12 or go.14. Others like git-lfs seem to not build correctly unless I tell them to build with go1.10. Not sure if this really fixes the build problems, and as I am not a go expert I cannot tell if this idea is complete bogus. Nevertheless, I'd like to try out... ;-)
This seems to work: BuildRequire: go < 1.13 BuildRequire: go >= 1.12
This does not: BuildRequire: go1.12
Nope: BuildRequire: go = 1.12 (as the available version is 1.12.9 or something like that)
This would be the correct cross-distro dependency: BuildRequires: (golang >= 1.12 with golang < 1.13) (The openSUSE specific variant would be just using "go" instead of "golang") This ensures that the dependency resolver looks for exactly one package that satisfies both terms. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org