Does not build on WSL in Windows if the path contains spaces. The $PWD is then split into multiple strings.
Search Criteria
Package Details: yay 12.4.2-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/yay.git (read-only, click to copy) |
---|---|
Package Base: | yay |
Description: | Yet another yogurt. Pacman wrapper and AUR helper written in go. |
Upstream URL: | https://github.com/Jguer/yay |
Keywords: | arm AUR go helper pacman wrapper x86 |
Licenses: | GPL-3.0-or-later |
Submitter: | jguer |
Maintainer: | jguer |
Last Packager: | jguer |
Votes: | 2254 |
Popularity: | 25.31 |
First Submitted: | 2016-10-05 17:20 (UTC) |
Last Updated: | 2024-09-19 14:27 (UTC) |
Dependencies (5)
- git (git-gitAUR, git-glAUR)
- pacman (pacman-gitAUR)
- go (go-gitAUR, gcc-go-gitAUR, go-sylixosAUR, gcc-go-snapshotAUR, gcc-go) (make)
- doasAUR (opendoas) (optional) – privilege elevation
- sudo (fake-sudoAUR, polkit-fakesudoAUR, sudo-gitAUR, doas-sudo-shimAUR, doas-sudo-shim-minimalAUR, sudo-hgAUR, sudo-selinuxAUR, fudo-gitAUR) (optional) – privilege elevation
Required by (40)
- aconfmgr-git (optional)
- arch-update (optional)
- arch-update-git (optional)
- axu
- axu-bin
- blender-launcher-git
- cleanupdate-git (optional)
- cmd-not-found (optional)
- etwas
- fuzzy-pkg-finder (optional)
- fzpac (optional)
- fzpac-git (optional)
- idos-package-updater-script
- kdeplasma-arch-update-notifier-git (optional)
- klaus-bin
- meta-package-manager (optional)
- meta-package-manager-git (optional)
- octopi (optional)
- pac-util (optional)
- pac-util-git (optional)
- packup (optional)
- pacup-arch-git (optional)
- pak-bin
- pak-git
- parui (optional)
- parui-git (optional)
- paxs
- pcmn-git
- pkg-listn (optional)
- pkg-listn-git (optional)
- pkgctrl-bin
- pkm
- pmm-git (optional)
- ppac-git (optional)
- repkg (optional)
- spm-arch
- ualsv
- uau (optional)
- update-notifier (optional)
- yayfzf
Sources (1)
Latest Comments
« First ‹ Previous 1 .. 15 16 17 18 19 20 21 22 23 24 25 .. 35 Next › Last »
mr.benedikt commented on 2020-03-22 23:40 (UTC)
wangrongda commented on 2020-03-09 01:58 (UTC)
detecting dependences incorrectly when setting an alternate installation root with -r
Falkenber9 commented on 2020-03-08 15:10 (UTC)
@jachymb:
I had the same issue.
I replaced gcc-go-9.2.1+20200130-2
by installing go
(go-2:1.14-1) from the community repo.
Afterwards, yay
-package builds like a charm.
jachymb commented on 2020-03-07 08:40 (UTC)
Last version build crashed with:
go build -v -mod=mod -ldflags '-s -w -linkmode external -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.version=9.4.6"' -modcacherw -gcflags all=-trimpath=/home/jachym/.cache/yay/yay/src/yay-9.4.6 -asmflags all=-trimpath=/home/jachym/.cache/yay/yay/src/yay-9.4.6 -o yay
flag provided but not defined: -modcacherw
usage: go build [-o output] [-i] [build flags] [packages]
Run 'go help build' for details.
make: *** [Makefile:49: yay] Error 2
==> ERROR: A failure occurred in build().
Aborting...
slash170 commented on 2020-03-07 07:08 (UTC) (edited on 2020-03-07 07:08 (UTC) by slash170)
I have encounted same issue.I guess that cause of issue is version of Go at local environment.
I have succeeded to build yay with Go 1.14.
Go 1.14 was released last month and new option(modcacherw) was added for go build command.Please check URL bellow.
I think that yay needs Go1.14 for go build task. Thank you.
jose1711 commented on 2020-03-05 18:36 (UTC)
@menta thank you for the hint, worked for me!
menta commented on 2020-03-03 14:49 (UTC)
Specifying -mod=readonly
instead of -modcacherw
as the first parameter of EXTRA_GOFLAGS
has solved the "flag provided but not defined: -modcacherw" error for me.
Ergus commented on 2020-03-02 12:43 (UTC)
Same problem here!!
go build -v -mod=mod -ldflags '-s -w -linkmode external -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.version=9.4.6"' -modcacherw -gcflags all=-trimpath=/tmp/aurman/yay/src/yay-9.4.6 -asmflags all=-trimpath=/tmp/aurman/yay/src/yay-9.4.6 -o yay
flag provided but not defined: -modcacherw
usage: go build [-o output] [-i] [build flags] [packages]
Run 'go help build' for details.
make: *** [Makefile:49: yay] Error 2
==> ERROR: A failure occurred in build().
Aborting...
2020-03-02 13:39:01,941 - wrappers - makepkg - ERROR - makepkg query ['makepkg', '-cf', '--noconfirm'] failed in directory /tmp/aurman/yay
mokkurkalve commented on 2020-03-01 23:09 (UTC)
Yes, with gcc-go 9.2.1+20200130-2 I get:
go build -v -mod=mod -ldflags '-s -w -linkmode external -extldflags "-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" -X "main.version=9.4.6"' -modcacherw -gcflags all=-trimpath=/tmp/makepkg/yay/src/yay-9.4.6 -asmflags all=-trimpath=/tmp/makepkg/yay/src/yay-9.4.6 -o yay
flag provided but not defined: -modcacherw
usage: go build [-o output] [-i] [build flags] [packages]
Run 'go help build' for details.
make: *** [Makefile:49: yay] Error 2
MagicAndWires commented on 2020-03-01 02:19 (UTC)
Cheers! A final small change would be to change the trimpath flags from $PWD
to $srcdir
, in order to clean up leftover references to $GOPATH
from the binary.
Pinned Comments
jguer commented on 2024-03-16 08:06 (UTC)
This will happen if you upgrade pacman and yay separately If you have this error you need to manually recompile yay
jguer commented on 2019-04-16 14:08 (UTC)
I cannot delete the spam comments appearing regularly in this page, which has also led me to disable notifications from here. I remind that the best way to receive support or report a problem is through the Upstream URL.