You are not logged in.
I've Installed Arch a couple of times now, not once did I have any problem installing yay, but this time yay was Installing/building and I shut the lid (I'm using a laptop), when I opened the lid I saw that the Installation failed, I forgot to copy the errors, but I re-tried it now and It gives a bunch of errors, and fails to Install. Here is the errors:
==> Making package: yay 10.0.4-1
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found yay-10.0.4.tar.gz
==> Validating source files with sha256sums...
yay-10.0.4.tar.gz ... Passed
==> Extracting sources...
-> Extracting yay-10.0.4.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
go build -v -trimpath -mod=readonly -modcacherw -ldflags '-s -w -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.yayVersion=10.0.4" -X "main.localePath=/usr/share/locale/"' -buildmode=pie -o yay
/usr/lib/go/src/bufio/bufio.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/bytes/boundary_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/encoding/encoding.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/encoding/base64/base64.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/encoding/binary/binary.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/encoding/gob/codec_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/encoding/hex/example_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/encoding/json/bench_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/encoding/xml/atom_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/errors/errors.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/fmt/doc.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/html/entity.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/io/example_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/io/ioutil/example_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/math/abs.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/math/bits/bits.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/net/http/alpn_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/net/http/httptest/example_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/net/textproto/header.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/net/url/example_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/os/dir.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/os/exec/bench_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/path/example_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/path/filepath/example_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/reflect/all_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/regexp/all_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/runtime/alg.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/runtime/cgo/callbacks.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/runtime/debug/garbage.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/sort/example_interface_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/strconv/atob.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/strings/builder.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/sync/cond.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/syscall/bpf_bsd.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/testing/allocs.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/time/embed.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/unicode/casetables.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/unicode/utf8/example_test.go:1:1: expected 'package', found 'EOF'
/usr/lib/go/src/unsafe/unsafe.go:1:1: expected 'package', found 'EOF'
make: *** [Makefile:127: yay] Error 1
==> ERROR: A failure occurred in build().
Aborting...
Last edited by DeletedUser210705 (2020-10-18 07:13:50)
Offline
just tried it myself, no problems.
try
makepkg -fC
if that doesnt work try re-installing the "go" package
pacman -S go
edit: sorry was meant to be a upper case "C" in makepkg -fC
Last edited by jonno2002 (2020-10-18 08:06:52)
Offline
Please use code tags around terminal output.
https://wiki.archlinux.org/index.php/Co … s_and_code
Mod note: moving to AUR Issues
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Yeah, this looks to me like your Go installation got corrupted somehow (maybe it got interrupted when you closed the lid?), so I'd first try to remove and then reinstall Go. But before reinstalling, check that /usr/lib/go/* has been properly cleaned, the corrupted installation may have failed to properly register these files as belonging to it and thus may also fail to remove them.
Offline
And there is yay-bin of course. No need to "go".
https://aur.archlinux.org/packages/yay-bin
sys2064
Offline