golang package missing from centos/7.6.1810

General support questions
dangogh
Posts: 5
Joined: 2018/12/03 22:04:09

golang package missing from centos/7.6.1810

Post by dangogh » 2018/12/03 22:20:28

Hi all.. my rpm has a dependency on golang-1.9.4, but the recent change of the centos/7 repo to 7.1810 is missing the golang packages (any version).

This is the location within 7.5.1804: http://mirror.centos.org/centos/7.5.180 ... x86_64.rpm

Was this deliberate?

thanks..

dangogh
Posts: 5
Joined: 2018/12/03 22:04:09

Re: golang package missing from centos/7.6.1810

Post by dangogh » 2018/12/03 22:52:53

dangogh wrote:
2018/12/03 22:20:28
Hi all.. my rpm has a dependency on golang-1.9.4, but the recent change of the centos/7 repo to 7.1810 is missing the golang packages (any version).
correction -- "... change of the centos/7 repo to 7.6.1810 ..."

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: golang package missing from centos/7.6.1810

Post by chemal » 2018/12/04 01:39:29

To quote from the 7.6 release notes:

Use the Go Toolset instead of golang

The golang package, previously available in the Optional channel, will no longer receive updates in Red Hat Enterprise Linux 7. Developers are encouraged to use the Go Toolset instead, which is available through the Red Hat Developer program.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: golang package missing from centos/7.6.1810

Post by avij » 2018/12/04 04:21:21

Yes, it is intentionally no longer included in CentOS due to an upstream decision (as in the above quote from RHEL release notes).

Perhaps you could use the slightly newer golang from EPEL instead? It is currently in testing so you will need to use the --enablerepo=epel-testing yum parameter to see it. If you don't have the EPEL repository installed yet, you can install the EPEL repository config files with yum install epel-release --enablerepo=extras.

Code: Select all

# yum info golang --enablerepo=epel-testing
...
Available Packages
Name        : golang
Arch        : x86_64
Version     : 1.11.2
Release     : 2.el7
Size        : 631 k
Repo        : epel-testing/x86_64
Summary     : The Go Programming Language
URL         : http://golang.org/
License     : BSD and Public Domain
Description : The Go Programming Language.
If it works (or not), please leave feedback via https://bodhi.fedoraproject.org/updates ... ba8845b83b

lebauce
Posts: 3
Joined: 2018/12/04 10:12:45

Re: golang package missing from centos/7.6.1810

Post by lebauce » 2018/12/04 10:39:47

Thanks for the explanation. Do we have an explanation on why upstream (Red Hat) decided this ?

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: golang package missing from centos/7.6.1810

Post by avij » 2018/12/04 12:24:32

You would need to ask this from RH, but maybe they didn't bother maintaining the old golang because they already had a newer version in their separate Go Toolset.

dangogh
Posts: 5
Joined: 2018/12/03 22:04:09

Re: golang package missing from centos/7.6.1810

Post by dangogh » 2018/12/04 15:43:15

thanks, all -- it does make sense given redhat's decision; and thanks for the extra info on epel -- we'll adjust our build process accordingly..

lebauce
Posts: 3
Joined: 2018/12/04 10:12:45

Re: golang package missing from centos/7.6.1810

Post by lebauce » 2018/12/04 16:36:45

Thanks. So golang was completely removed from the RHEL 7.6 repository ? My understanding is that they stopped providing updates, not removed the existing version (1.9.4 IIRC)

hughesjr
Site Admin
Posts: 254
Joined: 2004/12/05 01:51:26
Location: Corpus Christi, Texas, USA
Contact:

Re: golang package missing from centos/7.6.1810

Post by hughesjr » 2018/12/04 19:38:41

If you look, in the Red Hat repo you will see kernels from 7.0. CentOS does not have that either. If you wanted to use the 7.0 kerel, you would need to go to http://vault.centos.org/centos/ to get it .. it is the same for anything else that RH removed from their 'Current' tree.

It was removed from 7.6 tree by Red Hat .. the OLDER items from 7.5 (or 7.4, 7.3, 7.2, 7.1, 7.0) stay in their overall repo, not to be updated again. That is not how CentOS works .. we don't have an overall repo. We only support 'current'.

golang is NOW part of EPEL .. it is currently in epel testing. It will be moved to epel regular branch soon.

https://dl.fedoraproject.org/pub/epel/t ... ackages/g/ ( golang-1.11.2-3.el7.x86_64.rpm ). If it was part of the current RHEL tree, it would not be in EPEL.

This is not a decision we made .. it is just one that we have to react to.

Once the 7.5 tree is moved to vault.centos.org .. you can use http://vault.centos.org/centos/7.5.1804/extras/ to get the old golang .. BUT .. I would not as it will be out of date.

BTW .. All of the new golang built items items for the extras repo that were added as part of 7.6.1810 were built against golang-1.10.2 (all but the latest runc) or golang-1.10.3 (the latest runc)
Last edited by hughesjr on 2018/12/04 19:53:45, edited 1 time in total.

dangogh
Posts: 5
Joined: 2018/12/03 22:04:09

Re: golang package missing from centos/7.6.1810

Post by dangogh » 2018/12/04 19:52:35

In the meantime, I'm not able to build our package as it stands today, and we're trying to get a release out (tested with Go 1.9.4). I've tried making adjustments to reference 7.5.1804, but my yum-foo is weak..
yum --releasever=7.5.1804 install golang
gives me
Cannot find a valid baseurl for repo: base/7.5.1804/x86_64
same with 7.5. Suggestions on something for the short term?

Post Reply