Skip to content

go: warning: "github.com/therecipe/qt/cmd/..." matched no packages #1285

Open
@halohsu

Description

@halohsu

My projects name is zformat .
The source code position: /User/bluemiaomiao/Developer/zformat .
My IDE: JetBrains GoLand.
My Go: go version go1.20.2 darwin/amd64
My XCode: Version 14.2 (14C18)
My Qt: 6.4.3 in /Users/bluemiaomiao/Qt (Install By Default)
System Version: Apple macOS Vertura
System Lang: Chinese(China Mainland) 简体中文

Details:

Go Envs:

GO111MODULE="on"
GOARCH="amd64"
GOBIN="/Users/bluemiaomiao/go/bin"
GOCACHE="/Users/bluemiaomiao/Library/Caches/go-build"
GOENV="/Users/bluemiaomiao/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/bluemiaomiao/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/bluemiaomiao/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.20.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/bluemiaomiao/Developer/zformat/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/6m/90ltxr9x7pdbwy0bn3qghj280000gn/T/go-build26371885=/tmp/go-build -gno-record-gcc-switches -fno-common"

Command:

mkdir zformat
cd zformat
go mod init github.com/bluemiaomiao
export GO111MODULE=on
xcode-select --install
go get -v github.com/therecipe/qt
go install -v -tags=no_env github.com/therecipe/qt/cmd/...

The go install errors:

../../go/pkg/mod/github.com/therecipe/[email protected]/internal/cmd/cmd.go:15:2: missing go.sum entry for module providing package github.com/sirupsen/logrus (imported by github.com/therecipe/qt/internal/cmd); to add:
        go get github.com/therecipe/qt/internal/[email protected]
../../go/pkg/mod/github.com/therecipe/[email protected]/internal/binding/files/docs/mod.go:4:2: no required module provides package github.com/therecipe/qt/internal/binding/files/docs/5.12.0; to add it:
        go get github.com/therecipe/qt/internal/binding/files/docs/5.12.0
../../go/pkg/mod/github.com/therecipe/[email protected]/internal/binding/files/docs/mod.go:5:2: no required module provides package github.com/therecipe/qt/internal/binding/files/docs/5.13.0; to add it:
        go get github.com/therecipe/qt/internal/binding/files/docs/5.13.0
../../go/pkg/mod/github.com/therecipe/[email protected]/internal/cmd/moc/moc.go:19:2: missing go.sum entry for module providing package golang.org/x/tools/imports (imported by github.com/therecipe/qt/internal/cmd/moc); to add:
        go get github.com/therecipe/qt/internal/cmd/[email protected]

I try to exec:

go mod tidy
go install -v -tags=no_env github.com/therecipe/qt/cmd/...

The errors:

go: warning: "github.com/therecipe/qt/cmd/..." matched no packages

Finally, I can not find qtsetup, qtdepoly etc on my $GOBIN.

I have also tried the following solutions:

cd /Users/bluemiaomiao/go/pkg/mod/github.com/therecipe/[email protected]/cmd
go install qtsetup

The errors:

package qtdeploy is not in GOROOT (/usr/local/go/src/qtdeploy)

Help me pls!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions