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

运行make db后报错 #3

Open
xuzhiqiao294 opened this issue Oct 9, 2023 · 3 comments
Open

运行make db后报错 #3

xuzhiqiao294 opened this issue Oct 9, 2023 · 3 comments

Comments

@xuzhiqiao294
Copy link

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

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

@ActingCute
Copy link

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

@anerg2046
Copy link
Owner

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

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

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

3 participants