Skip to content

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

@salehasadi

Description

@salehasadi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions