Bug 2232545

Summary: file conflict breaks dnf upgrade: /usr/share/gocode/src/github.com/shirou/gopsutil/v3
Product: [Fedora] Fedora Reporter: Hans Ulrich Niedermann <rhbugs>
Component: golang-github-shirou-gopsutilAssignee: Pavel Solovev <daron439>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 38CC: daron439, go-sig, jchaloup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Hans Ulrich Niedermann 2023-08-17 10:15:01 UTC
Running "dnf -y upgrade" on an otherwise up to date F38 machine, I get

[...]
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/share/gocode/src/github.com/shirou/gopsutil/v3 from install of compat-golang-github-shirou-gopsutil-3-devel-3.23.5-2.fc38.noarch conflicts with file from package golang-github-shirou-gopsutil-devel-3.21.6-4.fc38.noarch

This has been happening for about a week now, basically blocking package upgrades unless I explicitly list all those other packages one by one on the "dnf upgrade" command line.

Running "dnf upgrade golang-github-shirou-gopsutil-devel" reproduces the same problem without all the other packages.

Escalating to "dnf upgrade --enablerepo=updates-testing golang-github-shirou-gopsutil-devel" produces the same result.

Reproducible: Always

Steps to Reproduce:
1. Run "dnf upgrade" and confirm the "[y/N]" question or run "dnf -y upgrade".

Actual Results:  
Error: Transaction test error:
  file /usr/share/gocode/src/github.com/shirou/gopsutil/v3 from install of compat-golang-github-shirou-gopsutil-3-devel-3.23.5-2.fc38.noarch conflicts with file from package golang-github-shirou-gopsutil-devel-3.21.6-4.fc38.noarch


Expected Results:  
Successful package upgrade.

golang-github-shirou-gopsutil-devel was the first package which produced this kind of error. However, golang-github-imdario-mergo-devel has recently started exhibiting this behaviour as well.