golang-bin conflict on fedora #3

Open
opened 2023-03-02 14:40:46 +00:00 by andrm · 0 comments

I'm trying to upgrade and it fails:

$ lure up lure
--> Pulling repository name="default"
--> Repository up to date name="default"
? Would you like to view the build script for go-bin Yes

╭────────╮                                                                                                                                                                   
│ go-bin ├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
╰────────╯                                                                                                                                                                   
name="go-bin"
version="1.20.1"
release=1
desc="Compiler and tools for the Go programming language"
desc_ru="Компилятор и инструменты для языка программирования Go"
homepage="https://go.dev/"
maintainer="Arsen Musayelyan <arsen@arsenm.dev>"
maintainer_ru="Арсен Мусаелян <arsen@arsenm.dev>"
architectures=('amd64' 'arm64' 'arm6' '386')
license=('BSD-3-Clause')
provides=('go' 'golang')
conflicts=('go' 'golang')

sources_amd64=("https://dl.google.com/go/go${version}.linux-amd64.tar.gz")
checksums_amd64=('000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02')

sources_arm64=("https://dl.google.com/go/go${version}.linux-arm64.tar.gz")
checksums_arm64=('5e5e2926733595e6f3c5b5ad1089afac11c1490351855e87849d0e7702b1ec2e')

sources_arm6=("https://dl.google.com/go/go${version}.linux-armv6l.tar.gz")
checksums_arm6=('e4edc05558ab3657ba3dddb909209463cee38df9c1996893dd08cde274915003')

sources_386=("https://dl.google.com/go/go${version}.linux-386.tar.gz")
checksums_386=('3a7345036ebd92455b653e4b4f6aaf4f7e1f91f4ced33b23d7059159cec5f4d7')

package() {
	mkdir -p "$pkgdir/usr/lib/" "$pkgdir/usr/bin"
	cp -r "$srcdir/go" "$pkgdir/usr/lib/go"
	ln -s "$pkgdir/usr/lib/go/bin/go" "$pkgdir/usr/bin/go"
}












                                                                                                                                                                     ╭──────╮
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ 100% │
? Would you still like to continue? Yes
--> Building package name="go-bin" version="1.20.1"
--> Downloading sources
--> Downloading source source="go-bin[0]" downloader="file"
go1.20.1.linux-amd64.tar.gz 100% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████| (95/95 MB, 59 MB/s)        
--> Executing package()                                                                                                                                                     
--> Building package metadata name="go-bin"
--> Compressing package name="go-bin-1.20.1-1.x86_64.rpm"
[sudo] password for am7c7: 
Sorry, try again.
[sudo] password for am7c7: 
Last metadata expiration check: 3:10:57 ago on Do 02 Mär 2023 12:20:38 CET.
Dependencies resolved.
=============================================================================================================================================================================
 Package                               Architecture                          Version                                       Repository                                   Size
=============================================================================================================================================================================
Installing:
 go-bin                                x86_64                                1.20.1-1                                      @commandline                                 99 M
Removing dependent packages:
 golang                                x86_64                                1.19.6-1.fc37                                 @updates                                    7.4 M

Transaction Summary
=============================================================================================================================================================================
Install  1 Package
Remove   1 Package

Total size: 99 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
  file /usr/bin/go from install of go-bin-0:1.20.1-1.x86_64 conflicts with file from package golang-bin-1.19.6-1.fc37.x86_64

 -> Error installing package error="dnf: install: exit status 1"
[am7c7@rohan ~]$ lure up 
--> Pulling repository name="default"
--> Repository up to date name="default"
Last metadata expiration check: 3:12:22 ago on Do 02 Mär 2023 12:20:38 CET.
Dependencies resolved.
=============================================================================================================================================================================
 Package                               Architecture                          Version                                       Repository                                   Size
=============================================================================================================================================================================
Installing:
 go-bin                                x86_64                                1.20.1-1                                      @commandline                                 99 M
Removing dependent packages:
 golang                                x86_64                                1.19.6-1.fc37                                 @updates                                    7.4 M

Transaction Summary
=============================================================================================================================================================================
Install  1 Package
Remove   1 Package

Total size: 99 M
Is this ok [y/N]: n
Operation aborted.
 -> Error installing package error="dnf: install: exit status 1"

How would I solve this?

I'm trying to upgrade and it fails: ``` $ lure up lure --> Pulling repository name="default" --> Repository up to date name="default" ? Would you like to view the build script for go-bin Yes ╭────────╮ │ go-bin ├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ╰────────╯ name="go-bin" version="1.20.1" release=1 desc="Compiler and tools for the Go programming language" desc_ru="Компилятор и инструменты для языка программирования Go" homepage="https://go.dev/" maintainer="Arsen Musayelyan <arsen@arsenm.dev>" maintainer_ru="Арсен Мусаелян <arsen@arsenm.dev>" architectures=('amd64' 'arm64' 'arm6' '386') license=('BSD-3-Clause') provides=('go' 'golang') conflicts=('go' 'golang') sources_amd64=("https://dl.google.com/go/go${version}.linux-amd64.tar.gz") checksums_amd64=('000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02') sources_arm64=("https://dl.google.com/go/go${version}.linux-arm64.tar.gz") checksums_arm64=('5e5e2926733595e6f3c5b5ad1089afac11c1490351855e87849d0e7702b1ec2e') sources_arm6=("https://dl.google.com/go/go${version}.linux-armv6l.tar.gz") checksums_arm6=('e4edc05558ab3657ba3dddb909209463cee38df9c1996893dd08cde274915003') sources_386=("https://dl.google.com/go/go${version}.linux-386.tar.gz") checksums_386=('3a7345036ebd92455b653e4b4f6aaf4f7e1f91f4ced33b23d7059159cec5f4d7') package() { mkdir -p "$pkgdir/usr/lib/" "$pkgdir/usr/bin" cp -r "$srcdir/go" "$pkgdir/usr/lib/go" ln -s "$pkgdir/usr/lib/go/bin/go" "$pkgdir/usr/bin/go" } ╭──────╮ ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ 100% │ ? Would you still like to continue? Yes --> Building package name="go-bin" version="1.20.1" --> Downloading sources --> Downloading source source="go-bin[0]" downloader="file" go1.20.1.linux-amd64.tar.gz 100% |█████████████████████████████████████████████████████████████████████████████████████████████████████████████| (95/95 MB, 59 MB/s) --> Executing package() --> Building package metadata name="go-bin" --> Compressing package name="go-bin-1.20.1-1.x86_64.rpm" [sudo] password for am7c7: Sorry, try again. [sudo] password for am7c7: Last metadata expiration check: 3:10:57 ago on Do 02 Mär 2023 12:20:38 CET. Dependencies resolved. ============================================================================================================================================================================= Package Architecture Version Repository Size ============================================================================================================================================================================= Installing: go-bin x86_64 1.20.1-1 @commandline 99 M Removing dependent packages: golang x86_64 1.19.6-1.fc37 @updates 7.4 M Transaction Summary ============================================================================================================================================================================= Install 1 Package Remove 1 Package Total size: 99 M Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Error: Transaction test error: file /usr/bin/go from install of go-bin-0:1.20.1-1.x86_64 conflicts with file from package golang-bin-1.19.6-1.fc37.x86_64 -> Error installing package error="dnf: install: exit status 1" [am7c7@rohan ~]$ lure up --> Pulling repository name="default" --> Repository up to date name="default" Last metadata expiration check: 3:12:22 ago on Do 02 Mär 2023 12:20:38 CET. Dependencies resolved. ============================================================================================================================================================================= Package Architecture Version Repository Size ============================================================================================================================================================================= Installing: go-bin x86_64 1.20.1-1 @commandline 99 M Removing dependent packages: golang x86_64 1.19.6-1.fc37 @updates 7.4 M Transaction Summary ============================================================================================================================================================================= Install 1 Package Remove 1 Package Total size: 99 M Is this ok [y/N]: n Operation aborted. -> Error installing package error="dnf: install: exit status 1" ``` How would I solve this?
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lure/lure#3
No description provided.