Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
bluemiaomiao opened this issue Mar 23, 2023 · 1 comment
Open

Comments

@bluemiaomiao
Copy link

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/qt@v0.0.0-20200904063919-c0c124a5770d/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/cmd@v0.0.0-20200904063919-c0c124a5770d
../../go/pkg/mod/github.com/therecipe/qt@v0.0.0-20200904063919-c0c124a5770d/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/qt@v0.0.0-20200904063919-c0c124a5770d/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/qt@v0.0.0-20200904063919-c0c124a5770d/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/moc@v0.0.0-20200904063919-c0c124a5770d

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/qt@v0.0.0-20200904063919-c0c124a5770d/cmd
go install qtsetup

The errors:

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

Help me pls!!

@chehan01
Copy link

chehan01 commented Oct 8, 2023

你init后直接在你的项目目录下go install
image
用不着先把项目拉下来然后再本地安装

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants