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

gorm-cli does not work on mac M1 2021 #23

Open
salehasadi opened this issue Dec 30, 2023 · 0 comments
Open

gorm-cli does not work on mac M1 2021 #23

salehasadi opened this issue Dec 30, 2023 · 0 comments

Comments

@salehasadi
Copy link

salehasadi commented Dec 30, 2023

when I try to perform any action using gorm-cli that throws this error to me
gorm-cli db:create_migration create_user

panic: Open plugin filed. (plugin.Open("./database/migration/.plugins/connection"): plugin was built with a different version of package gorm.io/gorm/clause) goroutine 1 [running]: github.com/iKala/gorm-cli/migrate.NewDB() /Users/thunder/go/pkg/mod/github.com/i!kala/gorm-cli@v0.0.0-20231019125029-0936e0e62ebc/migrate/init_db.go:11 +0x9c main.main() /Users/thunder/go/pkg/mod/github.com/i!kala/gorm-cli@v0.0.0-20231019125029-0936e0e62ebc/main.go:153 +0xa98

also tried to run the gorm-cli db init using following command but same issue happen
GOOS="darwin" GOARCH="arm64" gorm-cli db:init

go version go1.21.4 darwin/arm64

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

1 participant