govcl icon indicating copy to clipboard operation
govcl copied to clipboard

自定义 LibName 不支持 go1.21.1 以上版本

Open funte opened this issue 3 months ago • 0 comments

环境 vscode, win11 22h2.

命令 go run . 报错:

panic: The specified module could not be found.

goroutine 1 [running]:
github.com/ying32/govcl/vcl/api.loadUILib()
        xxx/gopath-1.21.1-x64/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/api/dylib.go:43 +0xa5
github.com/ying32/govcl/vcl/api.init()
        xxx/gopath-1.21.1-x64/pkg/mod/github.com/ying32/[email protected]+incompatible/vcl/api/dylib.go:23 +0x15e
exit status 2

命令 go env 输出:

set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=xxx\AppData\Local\go-build
set GOENV=xxx\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=xxx\gopath-1.21.1-x64\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=xxx\gopath-1.21.1-x64/
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=xxx\go-1.21.1-x64
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=xxx\go-1.21.1-x64\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.21.1
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=xxx\tmp\go.mod
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 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=xxx\AppData\Local\Temp\go-build3688887345=/tmp/go-build -gno-record-gcc-switches

funte avatar May 13 '24 11:05 funte