Closed ghaabor closed 5 years ago
Ran into this issue but the error stated that it couldn't find packr.Box in vendor
./buffalo_build_main.go:60:47: cannot use "com.c/c/vendor/github.com/gobuffalo/packr".NewBox("./migrations") (type "com.c/c/vendor/github.com/gobuffalo/packr".Box) as type "github.com/gobuffalo/packr".Box in argument to "github.com/markbates/pop".NewMigrationBox
./buffalo_build_main.go:60:47: cannot use models.DB (type *"com.c/c/vendor/github.com/gobuffalo/pop".Connection) as type *"github.com/markbates/pop".Connection in argument to "github.com/markbates/pop”.NewMigrationBox
I noticed a few things not sure which one fixed it though.
I have buffalo version 0.13.3 and project is 0.12.4. I get the message "github.com/ossn/fixme_backend/vendor/github.com/gobuffalo/pop".Connection) as type *"github.com/gobuffalo/pop".Connection in argument to popmw.Transaction
I also deleted the vendor but still same error
Dep support is going to be released in the next "major" version of Buffalo, so this issue won't be fixed. Sorry. https://github.com/gobuffalo/buffalo/issues/1545
As of the release of 0.11.0 buffalo stopped looking for our vendor directory. We have the following directory setup:
This is the command we run:
cd ./server && buffalo build --tags=distribution -o ../server-bin
When using 0.10.3 this command worked perfectly fine, it was able to locate the packages in
vendor
. Since 0.11.0buffalo build
is failing with this message: