Bug 2384170 - Some Go runtime libs unexpectedly located in golang-tests package
Summary: Some Go runtime libs unexpectedly located in golang-tests package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: golang
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Alejandro Sáez Morollón
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-28 22:55 UTC by Graham Mainwaring
Modified: 2026-02-27 01:22 UTC (History)
6 users (show)

Fixed In Version: golang-1.25.7-1.fc42
Clone Of:
Environment:
Last Closed: 2026-02-27 01:22:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.