gobuffalo / buffalo

Rapid Web Development w/ Go
http://gobuffalo.io
MIT License
8.09k stars 575 forks source link

Cannot find package "github.com/mattn/anko/builtins" #999

Closed gauthierc closed 6 years ago

gauthierc commented 6 years ago

In the mattn/anko project, builtins directory is not present. So, it's impossible to make a "buffalo new myproject".

markbates commented 6 years ago

Yes, you just need to make sure you have at least this version of pop: https://github.com/gobuffalo/pop/releases/tag/V4.2.3

long story short, mattn broke his public api and didn't follow semver.

ipfans commented 6 years ago

But when I upgrade to 0.12.0, it still not working:

$ soda -v
v4.5.9
$ buffalo version
INFO[0000] Buffalo version is: v0.12.0
$ buffalo new newproj --api --ci-provider gitlab-ci --skip-pop -f -v
      create  .buffalo.dev.yml
      create  Dockerfile
      create  .dockerignore
      create  .env
      create  main.go
      create  grifts/init.go
      create  actions/actions_test.go
      create  actions/app.go
      create  fixtures/sample.toml
      create  inflections.json
      create  README.md
      create  actions/home.go
      create  .codeclimate.yml
      create  actions/home_test.go
      create  actions/render.go
      create  .gitlab-ci.yml
         run  go get -t -v ./...
github.com/mattn/anko (download)
package github.com/mattn/anko/builtins: cannot find package "github.com/mattn/anko/builtins" in any of:
    /usr/local/opt/go/libexec/src/github.com/mattn/anko/builtins (from $GOROOT)
    /Users/aaa/Developer/pkg/src/github.com/mattn/anko/builtins (from $GOPATH)
Usage:
  buffalo new [name] [flags]

Flags:
      --api                  skip all front-end code and configure for an API server
      --bootstrap int        specify version for Bootstrap [3, 4] (default 4)
      --ci-provider string   specify the type of ci file you would like buffalo to generate [none, travis, gitlab-ci] (default "none")
      --db-type string       specify the type of database you want to use [postgres, mysql, cockroach] (default "postgres")
      --docker string        specify the type of Docker file to generate [none, multi, standard] (default "multi")
  -f, --force                delete and remake if the app already exists
  -h, --help                 help for new
      --skip-pop             skips adding pop/soda to your app
      --skip-webpack         skips adding Webpack to your app
      --skip-yarn            use npm instead of yarn for frontend dependencies management
      --vcs string           specify the Version control system you would like to use [none, git, bzr] (default "git")
  -v, --verbose              verbosely print out the go get commands
      --with-dep             adds github.com/golang/dep to your app

ERRO[0003] Error: exit status 1
wittawasw commented 6 years ago

@ipfans Remove old anko, soda bin and anko, pop repo from $GOPATH to ensure latest updates and try again.