go-admin-server icon indicating copy to clipboard operation
go-admin-server copied to clipboard

运行make db后报错

Open xuzhiqiao294 opened this issue 2 years ago • 3 comments

貌似是在 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

xuzhiqiao294 avatar Oct 09 '23 09:10 xuzhiqiao294

需要使用git clone --recurse-submodules [email protected]:anerg2046/go-admin-server.git这个命令clone,需要git子模块

anerg2046 avatar Oct 09 '23 09:10 anerg2046

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

ActingCute avatar Jan 27 '24 03:01 ActingCute

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

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

anerg2046 avatar Jan 27 '24 07:01 anerg2046