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

更换版本后编译报错 #61

Open
aimerneige opened this issue Mar 10, 2023 · 1 comment
Open

更换版本后编译报错 #61

aimerneige opened this issue Mar 10, 2023 · 1 comment

Comments

@aimerneige
Copy link

➜ make build
GOOS=linux GOARCH=amd64 \
go build -o bin/mirai-chess-bot-linux-amd64-v1.9.0 \
cmd/bot/bot.go
# github.com/Logiase/MiraiGo-Template/bot
../../../.golang/pkg/mod/github.com/!logiase/!mirai!go-![email protected]/bot/bot.go:58:16: undefined: client.SystemDeviceInfo
../../../.golang/pkg/mod/github.com/!logiase/!mirai!go-![email protected]/bot/bot.go:88:16: undefined: client.SystemDeviceInfo
../../../.golang/pkg/mod/github.com/!logiase/!mirai!go-![email protected]/bot/bot.go:99:44: undefined: client.SystemDeviceInfo
../../../.golang/pkg/mod/github.com/!logiase/!mirai!go-![email protected]/bot/protocol.go:18:9: undefined: client.SystemDeviceInfo
make: *** [Makefile:29: bin/mirai-chess-bot-linux-amd64-v1.9.0] Error 1
module github.com/aimerneige/MiraiChess

go 1.19

require (
    github.com/Logiase/MiraiGo-Template v0.0.0-20221120093149-c0c90b30689e
    github.com/Mrs4s/MiraiGo v0.0.0-20230220070519-af032dec9677


)

可以编译的版本:

module github.com/aimerneige/MiraiChess

go 1.19

require (
    github.com/Logiase/MiraiGo-Template v0.0.0-20220412065005-27063e73adf8
    github.com/Mrs4s/MiraiGo v0.0.0-20220828090150-a3c348100dfe

)

底层库不太了解,不知道哪里出了问题

@aFlyBird0
Copy link

看一下go.mod里的miraigo,这个库应该只同步更新到了2022年11月

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