
On 27.02.20 at 08:05 Johannes Kastl 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?)?
Hmm, something is fishy. Why does Tumbleweed install go1.14 but keeps using go1.12? https://build.opensuse.org/project/monitor/home:ojkastl_buildservice:Branch_... spec contains this line: BuildRequires: (go >= 1.14 with go < 1.15) buildlog for openSUSE Tumbleweed: ######
[ 1s] Building git-lfs for project 'home:ojkastl_buildservice:Branch_git-lfs' repository 'openSUSE_Tumbleweed' arch 'x86_64' srcmd5 '9a07baba2f28c7b5b116610dfb35af98' ... [ 14s] [162/171] cumulate go1.14-1.14-4.1 ... [ 60s] go1.14-1.14-4.1 ######################################## [ 60s] update-alternatives: using /usr/lib64/go/1.14/bin/go to provide /usr/bin/go (go) in auto mode ... [ 73s] Copying deps to /home/abuild/rpmbuild/BUILD/contrib [ 73s] ++ get_gocontrib_path [ 73s] +++ rpm --eval '%{_datadir}' [ 73s] +++ rpm --eval %go_api_ver [ 73s] ++ echo /usr/share/go/1.12/contrib [ 73s] ++ get_buildcontrib_path [ 73s] ++ echo /home/abuild/rpmbuild/BUILD/contrib [ 73s] + cp -rT /usr/share/go/1.12/contrib/src /home/abuild/rpmbuild/BUILD/contrib/src [ 73s] cp: cannot stat '/usr/share/go/1.12/contrib/src': No such file or directory [ 73s] error: Bad exit status from /var/tmp/rpm-tmp.Pf7TbL (%build) ######
openSUSE Leap 15.1 correctly uses go1.14 (but fails later due to missing dependencies, but that is another topic). ######
[ 0s] Building git-lfs for project 'home:ojkastl_buildservice:Branch_git-lfs' repository 'openSUSE_Leap_15.1' arch 'x86_64' srcmd5 '9a07baba2f28c7b5b116610dfb35af98' ... [ 11s] [140/154] cumulate go1.14-1.14-lp151.4.1 ... [ 45s] go1.14-1.14-lp151.4.1 ######################################## [ 46s] update-alternatives: using /usr/lib64/go/1.14/bin/go to provide /usr/bin/go (go) in auto mode ... [ 61s] Copying deps to /home/abuild/rpmbuild/BUILD/contrib [ 61s] ++ get_gocontrib_path [ 61s] +++ rpm --eval '%{_datadir}' [ 61s] +++ rpm --eval %go_api_ver [ 61s] ++ echo /usr/share/go/1.14/contrib ...######
-- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@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