Bug 2117248

Summary: The package go-toolset is requiring a non-available version of golang in cs9
Product: Red Hat Enterprise Linux 9 Reporter: aleskandro <adistefa>
Component: go-toolsetAssignee: Alejandro Sáez Morollón <asm>
Status: CLOSED ERRATA QA Contact: Edjunior Barbosa Machado <emachado>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: adistefa, asm, bstinson, carl, cglombek, dbenoit, emachado, jwboyer, sipoyare, tstellar
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: golang-1.20.4-3.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-07 08:26:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description aleskandro 2022-08-10 12:10:53 UTC
Description of problem:

the go-toolset package requires golang-1.18.4, but golang-1.18.4 is not available yet.
This is tested with the quay.io images for centos stream9 both for amd64 and arm64.

Version-Release number of selected component (if applicable):
quay.io/centos/centos:stream9

arm64: quay.io/centos/centos@sha256:e95e5a7fee88ba5fdce2ec63d85d60b0f7fa1224b47c152f0d5ab3c30f7b7ea4

amd64:
quay.io/centos/centos@sha256:3c71804858f192773e0817572a2501c97a5cfdb43b7328a6a661e1d9e49fb90a

Steps to Reproduce:
1. docker run -it quay.io/centos/centos:stream9
2. dnf install --refresh go-toolset

Actual results:

CentOS Stream 9 - BaseOS                                                                                                                                                                                                     1.9 MB/s | 5.8 MB     00:03    
CentOS Stream 9 - AppStream                                                                                                                                                                                                  3.1 MB/s |  15 MB     00:04    
CentOS Stream 9 - Extras packages                                                                                                                                                                                            6.9 kB/s | 8.5 kB     00:01    
Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides golang = 1.18.4 needed by go-toolset-1.18.4-1.el9.x86_64

Expected results:

The package candidates a golang version available in the repositories.

Comment 1 Carl George 🤠 2022-08-11 03:57:25 UTC
Since golang and go-toolset are built from different source packages, it's possible for one to be published ahead of the other one, which is what has happened here.  One way to avoid that would be to combine the source packages and make go-toolset a subpackage of golang.  I've offered that up as a pull request.

https://gitlab.com/redhat/centos-stream/rpms/golang/-/merge_requests/16

Comment 2 Christian Glombek 2022-08-18 13:54:06 UTC
This is a blocker for our work on OKD-on-CentOS-Stream-CoreOS. Is there any chance we can get the proposed fix merged into the spec this week?

Comment 3 Christian Glombek 2022-08-18 18:52:02 UTC
Apologies, it wasn't a blocker for us after all - go-toolset-1.18.2 is still available and works fine.

Comment 4 Edjunior Barbosa Machado 2022-09-01 11:00:36 UTC
Looks like as of today both go-toolset-1.18.4-1.el9 and golang-1.18.4-3.el9 are available on appstream, thus the original issue is no longer reproducible:

(...)
[root@545a6a045456 /]# dnf install --refresh go-toolset
CentOS Stream 9 - BaseOS                                                           4.4 MB/s | 5.9 MB     00:01    
CentOS Stream 9 - AppStream                                                        7.7 MB/s |  15 MB     00:01    
CentOS Stream 9 - Extras packages                                                   11 kB/s | 8.5 kB     00:00    
Last metadata expiration check: 0:00:01 ago on Thu Sep  1 10:55:25 2022.
Dependencies resolved.
===================================================================================================================
 Package                                 Architecture      Version                      Repository            Size
===================================================================================================================
Installing:
 go-toolset                              x86_64            1.18.4-1.el9                 appstream            5.0 k
Installing dependencies:
 binutils                                x86_64            2.35.2-24.el9                baseos               4.6 M
 checkpolicy                             x86_64            3.4-1.el9                    appstream            347 k
 cpp                                     x86_64            11.3.1-2.1.el9               appstream             11 M
 cracklib                                x86_64            2.9.6-27.el9                 baseos                94 k
 cracklib-dicts                          x86_64            2.9.6-27.el9                 baseos               3.6 M
 delve                                   x86_64            1.8.3-1.el9                  appstream            4.1 M
 diffutils                               x86_64            3.7-12.el9                   baseos               397 k
 elfutils-debuginfod-client              x86_64            0.187-5.el9                  baseos                38 k
 environment-modules                     x86_64            5.0.1-1.el9                  baseos               493 k
 gcc                                     x86_64            11.3.1-2.1.el9               appstream             32 M
 gcc-toolset-12-binutils                 x86_64            2.38-16.el9                  appstream            5.5 M
 gcc-toolset-12-binutils-gold            x86_64            2.38-14.el9                  appstream            752 k
 gcc-toolset-12-runtime                  x86_64            12.0-5.el9                   appstream             55 k
 glibc-devel                             x86_64            2.34-40.el9                  appstream             43 k
 glibc-headers                           x86_64            2.34-40.el9                  appstream            543 k
 golang                                  x86_64            1.18.4-3.el9                 appstream            626 k
 golang-bin                              x86_64            1.18.4-3.el9                 appstream             96 M
 golang-src                              noarch            1.18.4-3.el9                 appstream            9.2 M
 groff-base                              x86_64            1.22.4-10.el9                baseos               1.1 M
 kernel-headers                          x86_64            5.14.0-160.el9               appstream            3.4 M
 less                                    x86_64            590-1.el9                    baseos               163 k
 libdb                                   x86_64            5.3.28-53.el9                baseos               738 k
 libeconf                                x86_64            0.4.1-2.el9                  baseos                28 k
 libfdisk                                x86_64            2.37.4-3.el9                 baseos               155 k
 libmpc                                  x86_64            1.2.1-4.el9                  appstream             62 k
 libpipeline                             x86_64            1.5.3-4.el9                  baseos                49 k
 libpkgconf                              x86_64            1.7.3-9.el9                  baseos                36 k
 libpwquality                            x86_64            1.4.4-8.el9                  baseos               119 k
 libselinux-utils                        x86_64            3.4-3.el9                    baseos               182 k
 libutempter                             x86_64            1.2.1-6.el9                  baseos                27 k
 libxcrypt-devel                         x86_64            4.4.18-3.el9                 appstream             29 k
 make                                    x86_64            1:4.3-7.el9                  baseos               538 k
 man-db                                  x86_64            2.9.3-6.el9                  baseos               1.2 M
 openssl                                 x86_64            1:3.0.1-40.el9               baseos               1.2 M
 openssl-devel                           x86_64            1:3.0.1-40.el9               appstream            4.1 M
 pam                                     x86_64            1.5.1-12.el9                 baseos               621 k
 pkgconf                                 x86_64            1.7.3-9.el9                  baseos                41 k
 pkgconf-m4                              noarch            1.7.3-9.el9                  baseos                15 k
 pkgconf-pkg-config                      x86_64            1.7.3-9.el9                  baseos                11 k
 policycoreutils                         x86_64            3.4-3.el9                    baseos               233 k
 policycoreutils-python-utils            noarch            3.4-3.el9                    appstream             75 k
 procps-ng                               x86_64            3.3.17-8.el9                 baseos               346 k
 python3-audit                           x86_64            3.0.7-103.el9                appstream             84 k
 python3-libselinux                      x86_64            3.4-3.el9                    appstream            186 k
 python3-libsemanage                     x86_64            3.4-2.el9                    appstream             80 k
 python3-policycoreutils                 noarch            3.4-3.el9                    appstream            2.1 M
 python3-setools                         x86_64            4.4.0-5.el9                  baseos               599 k
 python3-setuptools                      noarch            53.0.0-10.el9                baseos               946 k
 scl-utils                               x86_64            1:2.0.3-2.el9                appstream             38 k
 systemd-libs                            x86_64            250-11.el9                   baseos               633 k
 tcl                                     x86_64            1:8.6.10-7.el9               baseos               1.1 M
 util-linux                              x86_64            2.37.4-3.el9                 baseos               2.3 M
 util-linux-core                         x86_64            2.37.4-3.el9                 baseos               460 k
 vim-filesystem                          noarch            2:8.2.2637-16.el9            baseos                25 k

Transaction Summary
===================================================================================================================
Install  55 Packages

Total download size: 192 M
Installed size: 671 M
Is this ok [y/N]: 
(...)

Comment 5 Christian Glombek 2023-06-09 19:12:41 UTC
This is again an issue now with go moving to v1.20.

A possible fix has already been proposed earlier: https://gitlab.com/redhat/centos-stream/rpms/golang/-/merge_requests/16

Comment 6 Alejandro Sáez Morollón 2023-06-14 09:02:02 UTC
It should be fixed now.

Comment 11 errata-xmlrpc 2023-11-07 08:26:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (golang and delve bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6364