Bug 32638

Summary: go.env is missing in the GOROOT
Product: Mageia Reporter: jean rossi <jeanroch>
Component: RPM PackagesAssignee: Bruno Cornec <bruno>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: Normal CC: smelror
Version: 9   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: golang-1.21.5-1.mga9 CVE:
Status comment:

Description jean rossi 2023-12-19 00:03:45 CET
Description of problem:
The file go.env is missing in /usr/lib/golang/


Version-Release number of selected component (if applicable): golang-1.21.5-1.mga9


How reproducible:
When trying to install a package, it is giving this error
$ /usr/bin/go install -v github.com/go-delve/delve/cmd/dlv@latest
go: github.com/go-delve/delve/cmd/dlv@latest: GOPROXY list is not the empty string, but contains no entries

I found the fix from this link
https://github.com/golang/go/issues/61928
Comment 1 Lewis Smith 2023-12-19 21:35:38 CET
Thank you for the report, and the valuable link.

Assigning this to Bruno who first put up v1.21.0 which is cited in the Golang bug "go mod download breaks on 1.21.0 due to empty GOPROXY".
CC'ing Stig who has done subsequent updates.

Assignee: bugsquad => bruno
CC: (none) => smelror

Comment 2 Stig-Ørjan Smelror 2023-12-19 21:43:03 CET
@Bruno,

There is a fix in the Cauldron version as I ran into this issue on my system.
Comment 3 Bruno Cornec 2023-12-19 23:30:16 CET
Strange, I don't see it:

last commit after svn up for cauldron:
------------------------------------------------------------------------
r2009424 | bcornec | 2023-11-24 01:54:50 +0100 (ven. 24 nov. 2023) | 1 ligne
Chemins modifiés :
   M /cauldron/docker/current/SPECS/docker.spec

backport some mga8 fixes for URLS with https
------------------------------------------------------------------------

Status: NEW => ASSIGNED

Comment 4 Bruno Cornec 2023-12-19 23:39:54 CET
Oops, forget that, wrong dir :-(
Comment 5 Bruno Cornec 2023-12-19 23:45:13 CET
I updated the mga9 and cauldron spec files putting them at parity (go.env patch for mga9 and rel tag updated for cauldron)

Build ongoing
Comment 6 Stig-Ørjan Smelror 2023-12-20 12:56:22 CET
@Bruno
Shouldn't the mga9 update be 1.21.5-1.1 and not -2?
Comment 7 Bruno Cornec 2023-12-20 14:50:49 CET
When cauldron and mga9 packages are identical, then they can keep the same tag IIUC.
Comment 8 Jani Välimaa 2023-12-22 17:54:09 CET
(In reply to Bruno Cornec from comment #7)
> When cauldron and mga9 packages are identical, then they can keep the same
> tag IIUC.
No, in stable releases we use %subrel to make sure cauldron is always having higher EVRD. It makes sure upgrade path from old stable to new stable will work.

According to our Updates Policy, https://wiki.mageia.org/en/Updates_policy

- If the version didn't change, leave mkrel as is and '%define subrel 1'
- If it's an update to a new version: use '%mkrel 1' without subrel
Comment 9 Bruno Cornec 2024-01-05 15:47:45 CET
Submission errors, aborting:
- golang-1.21.5-1.1.mga9.src:
 - Current or newer revision(s) already exists in core/updates_testing for 9: 1.21.5-2.mga9


So can someone please remove that package before I can submit with the ritgh tag now ? (Will also ask on @sysadmin)