Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Makepkg Missing dependencies: -> go>=1.21 #2528

Open
startergo opened this issue Nov 8, 2024 · 1 comment
Open

Makepkg Missing dependencies: -> go>=1.21 #2528

startergo opened this issue Nov 8, 2024 · 1 comment

Comments

@startergo
Copy link

startergo commented Nov 8, 2024

Affected Version

Describe the bug

Makepkg Missing dependencies: -> go>=1.21

Reproduction Steps

sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si

Expected behavior

Expecting the build to run succesfully

Output

uname
MINGW64_NT-10.0-27729
pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
warning: git-2.47.0-1 is up to date -- skipping
warning: base-devel-2022.12-2 is up to date -- skipping
 there is nothing to do
Cloning into 'yay'...
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint:   git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m <name>
remote: Enumerating objects: 528, done.
remote: Counting objects: 100% (528/528), done.
remote: Compressing objects: 100% (357/357), done.
remote: Total 528 (delta 169), reused 512 (delta 168), pack-reused 0 (from 0)
Receiving objects: 100% (528/528), 103.08 KiB | 299.00 KiB/s, done.
Resolving deltas: 100% (169/169), done.
==> Making package: yay 12.4.2-1 (Fri Nov  8 13:47:44 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
error: target not found: go>=1.21
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> go>=1.21
==> ERROR: Could not resolve all dependencies.
go version
go version go1.23.2 windows/amd64

go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\G5\AppData\Local\go-build
set GOENV=C:\Users\G5\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\G5\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\G5\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:/msys64/mingw64/lib/go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\msys64\mingw64\lib\go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.23.2
set GODEBUG=
set GOTELEMETRY=local
set GOTELEMETRYDIR=C:\Users\G5\AppData\Roaming\go\telemetry
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\msys64\tmp\go-build432547025=/tmp/go-build -gno-record-gcc-switches
@Pantheriah
Copy link

Pantheriah commented Feb 18, 2025

I had this same issue. I simply ran sudo pacman -S go first

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants