Skip to content

make generate works but then causes make server to fail with : "main.go:18:2: import "github.com/GoAdminGroup/example/tables" is a program, not an importable package" #6

@joe-getcouragenow

Description

@joe-getcouragenow

The tables folder is a main package.


make generate 
go install github.com/GoAdminGroup/go-admin/adm
go: finding module for package github.com/AlecAivazis/survey/v2
go: downloading github.com/lib/pq v1.3.0
go: finding module for package github.com/jawher/mow.cli
go: finding module for package github.com/tdewolff/minify
go: downloading github.com/go-sql-driver/mysql v1.5.0
go: finding module for package github.com/tdewolff/minify/js
go: finding module for package github.com/tdewolff/minify/css
go: finding module for package github.com/jteeuwen/go-bindata
go: finding module for package github.com/schollz/progressbar
go: finding module for package github.com/AlecAivazis/survey/v2/core
go: downloading github.com/tdewolff/minify v1.1.0
go: downloading github.com/jawher/mow.cli v1.2.0
go: downloading github.com/AlecAivazis/survey/v2 v2.1.1
go: downloading github.com/jteeuwen/go-bindata v3.0.7+incompatible
go: downloading github.com/schollz/progressbar v1.0.0
go: downloading github.com/AlecAivazis/survey v1.8.8
go: downloading github.com/tdewolff/minify v2.3.6+incompatible
go: found github.com/AlecAivazis/survey/v2 in github.com/AlecAivazis/survey/v2 v2.1.1
go: found github.com/AlecAivazis/survey/v2/core in github.com/AlecAivazis/survey/v2 v2.1.1
go: found github.com/jawher/mow.cli in github.com/jawher/mow.cli v1.2.0
GoAdmin CLI v1.2.16

? choose table to generate [select all]
? generate permission records for tables yes

✔ generating: 

 100% |████████████████████████████████████████| [0s:0s]            

Generate data table models success~~🍺🍺

see the docs: https://book.go-admin.com
visit forum: http://discuss.go-admin.com


make serve  
go run .
main.go:18:2: import "github.com/GoAdminGroup/example/tables" is a program, not an importable package
make[1]: *** [serve] Error 1
make: *** [run] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions