anerg2046 / go-admin-server

基于go-app-template开发的一个基础后台框架
MIT License
34 stars 12 forks source link

运行make db后报错 #3

Open xuzhiqiao294 opened 1 year ago

xuzhiqiao294 commented 1 year ago

貌似是在 lib 下缺少一些东西 lunatic@LunaticdeMacBook-Pro go-admin-server % make db go run cmd/migrator/main.go config/db.go:4:2: package go-app/lib/util is not in std (/opt/homebrew/Cellar/go/1.21.2/libexec/src/go-app/lib/util) boot/db/database.go:6:2: package go-app/lib/database is not in std (/opt/homebrew/Cellar/go/1.21.2/libexec/src/go-app/lib/database) boot/db/database.go:7:2: package go-app/lib/logger is not in std (/opt/homebrew/Cellar/go/1.21.2/libexec/src/go-app/lib/logger) cmd/migrator/main.go:15:2: package go-app/lib/rbac is not in std (/opt/homebrew/Cellar/go/1.21.2/libexec/src/go-app/lib/rbac) make: *** [db] Error 1

anerg2046 commented 1 year ago

需要使用git clone --recurse-submodules git@github.com:anerg2046/go-admin-server.git这个命令clone,需要git子模块

ActingCute commented 10 months ago

大佬直接给出sql文件啊,编译环境浪费很多时间

anerg2046 commented 10 months ago

大佬直接给出sql文件啊,编译环境浪费很多时间

执行make db就好了啊,有go环境就可以了