Bug 2384170

Summary: Some Go runtime libs unexpectedly located in golang-tests package
Product: [Fedora] Fedora Reporter: Graham Mainwaring <graham>
Component: golangAssignee: Alejandro Sáez Morollón <asm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: amurdaca, asm, go-sig, jcajka, lemenkov, mattioli.fernando
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: golang-1.25.7-1.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-02-27 01:22:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Graham Mainwaring 2025-07-28 22:55:34 UTC
If you install the golang and golang-bin packages, the Go 1.24 FIPS provider is not installed under /usr/lib/golang/lib/fips140/ as expected.  This results in errors when using some combinations of settings involving GOFIPS140.  Installing golang-tests solves this problem, because the golang-tests package includes these runtime libraries.  This is counterintuitive because these libraries are not tests.  They should be included in the regular golang installation, or be a separate golang-fips140 package, or something like that.


Reproducible: Always

Steps to Reproduce:

[graham@B83FQN3 ~]$ GOTOOLCHAIN=go1.23.9 GOFIPS140=v1.0.0 go version
go: go: unknown GOFIPS140 version "v1.0.0"
[graham@B83FQN3 ~]$ sudo dnf -y install golang-tests
Updating and loading repositories:
Repositories loaded.
Package                                     Arch        Version                                     Repository                  Size
Installing:
 golang-tests                               noarch      1.24.5-1.fc42                               updates                 36.6 MiB

Transaction Summary:
 Installing:         1 package

Total size of inbound packages is 11 MiB. Need to download 11 MiB.
After this operation, 37 MiB extra will be used (install 37 MiB, remove 0 B).
[1/1] golang-tests-0:1.24.5-1.fc42.noarch                                                   100% |   8.4 MiB/s |  11.0 MiB |  00m01s
------------------------------------------------------------------------------------------------------------------------------------
[1/1] Total                                                                                 100% |   7.0 MiB/s |  11.0 MiB |  00m02s
Running transaction
[1/3] Verify package files                                                                  100% |  31.0   B/s |   1.0   B |  00m00s
[2/3] Prepare transaction                                                                   100% |   3.0   B/s |   1.0   B |  00m00s
[3/3] Installing golang-tests-0:1.24.5-1.fc42.noarch                                        100% |  42.6 MiB/s |  38.1 MiB |  00m01s
Complete!
[graham@B83FQN3 ~]$ GOTOOLCHAIN=go1.23.9 GOFIPS140=v1.0.0 go version
go version go1.23.9 linux/amd64

Actual Results:
Using GOFIPS140 with GOTOOLCHAIN results in an "unknown GOFIPS140 version" error

Expected Results:
The Go 1.24 FIPS140 system should work with just `golang` installed; it should not require `golang-tests`.

Comment 1 Fedora Update System 2026-02-18 15:31:11 UTC
FEDORA-2026-592445ab22 (golang-1.24.13-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-592445ab22

Comment 2 Fedora Update System 2026-02-19 02:21:52 UTC
FEDORA-2026-592445ab22 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-592445ab22`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-592445ab22

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2026-02-24 00:50:45 UTC
FEDORA-2026-a949c76934 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-a949c76934`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-a949c76934

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2026-02-27 01:22:55 UTC
FEDORA-2026-a949c76934 (golang-1.25.7-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.