Closed lr1980 closed 5 years ago
Follow the instructions from buffalo info. Your environment isn’t properly configured. You’re working outside of your GOPATH.
Mark Bates On Apr 27, 2019, 2:24 PM -0400, Lutz Reinhardt notifications@github.com, wrote:
Steps to Reproduce the Problem $ buffalo new coke
DEBU[2019-04-27T20:11:17+02:00] Step: 39123e09
DEBU[2019-04-27T20:11:17+02:00] Chdir: /Users/myuser/go/coke
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/.codeclimate.yml
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/.env
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/README.md
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/actions/actions_test.go
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/actions/app.go
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/actions/home.go
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/actions/home_test.go
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/actions/render.go
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/fixtures/sample.toml
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/grifts/init.go
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/inflections.json
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/main.go
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/config/buffalo-app.toml
DEBU[2019-04-27T20:11:17+02:00] Step: 36cba6d0
DEBU[2019-04-27T20:11:17+02:00] Chdir: /Users/myuser/go/coke
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/.dockerignore
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/Dockerfile
DEBU[2019-04-27T20:11:17+02:00] Step: 62cf8bf5
DEBU[2019-04-27T20:11:17+02:00] Chdir: /Users/myuser/go/coke
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/grifts/db.go
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/models/models.go
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/models/models_test.go
DEBU[2019-04-27T20:11:17+02:00] Exec: go get github.com/gobuffalo/pop
DEBU[2019-04-27T20:11:17+02:00] Step: 61d8d1d8
DEBU[2019-04-27T20:11:17+02:00] Chdir: /Users/myuser/go/coke
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/database.yml
DEBU[2019-04-27T20:11:17+02:00] Step: d2bc3fc9
DEBU[2019-04-27T20:11:17+02:00] Chdir: /Users/myuser/go/coke
DEBU[2019-04-27T20:11:17+02:00] File: /Users/myuser/go/coke/.buffalo.dev.yml
DEBU[2019-04-27T20:11:17+02:00] Step: d63ca79c
DEBU[2019-04-27T20:11:17+02:00] Chdir: /Users/myuser/go/coke
DEBU[2019-04-27T20:11:17+02:00] Exec: go get github.com/gobuffalo/buffalo-plugins
DEBU[2019-04-27T20:11:18+02:00] Exec: go get github.com/gobuffalo/buffalo-pop
DEBU[2019-04-27T20:11:19+02:00] Step: 23505785
DEBU[2019-04-27T20:11:19+02:00] Chdir: /Users/myuser/go/coke
DEBU[2019-04-27T20:11:19+02:00] File: /Users/myuser/go/coke/config/buffalo-plugins.toml
DEBU[2019-04-27T20:11:19+02:00] Step: 9761b2d1
DEBU[2019-04-27T20:11:19+02:00] Chdir: /Users/myuser/go/coke
DEBU[2019-04-27T20:11:19+02:00] Exec: go get -t ./...
grifts/init.go:5:2: cannot find package "../coke/actions" in:
/Users/myuser/go/coke/coke/actions
Usage:
buffalo new [name] [flags]
Flags:
--api skip all front-end code and configure for an API server --ci-provider string specify the type of ci file you would like buffalo to generate [none, travis, gitlab-ci] (default "none") --config string config file (default is $HOME/.buffalo.yaml) --db-type string specify the type of database you want to use [cockroach, mysql, postgres, sqlite3] (default "postgres") --docker string specify the type of Docker file to generate [none, multi, standard] (default "multi")
-d, --dry-run dry run
-f, --force delete and remake if the app already exists
-h, --help help for new
--module string specify the root module (package) name. [defaults to 'automatic'] --skip-config skips using the config file --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[0002] Error: exit status 1
Info Please run buffalo info and paste the information below where it says "PASTE_HERE". $ buffalo info
-> Go: Checking installation
✓ The
go
executable was found on your system at: /usr/local/go/bin/go-> Go: Checking minimum version requirements
✓ Your version of Go, 1.12.1, meets the minimum requirements.
-> Go: Checking GOPATH
✘ You do not appear to be operating inside of your GOPATH.
Things to check:
Capitalization - make sure that your capitalization of /Users/myuser/go matches that of /Users/myuser/go
src
- make sure that you are working under /Users/myuser/go/srcGOPATH: /Users/myuser/go
PWD: /Users/myuser/go
Build Sources: /usr/local/go/src, /Users/myuser/go/src
For help setting up your Go environment please follow the instructions for you platform at:
https://www.gopherguides.com/courses/preparing-your-environment-for-go-development
-> Go: Checking Package Management
⚠ You do not appear to be using a package management system.
It is strongly suggested that you use one of the following package management systems:
Go Modules (Recommended) - https://gobuffalo.io/en/docs/gomods
For help setting up your Go environment please follow the instructions for you platform at:
https://www.gopherguides.com/courses/preparing-your-environment-for-go-development
-> Go: Checking PATH
✓ Your PATH contains /Users/myuser/go/bin.
-> Node: Checking installation
✓ The
node
executable was found on your system at: /usr/local/bin/node-> Node: Checking minimum version requirements
✓ Your version of Node, v11.13.0, meets the minimum requirements.
-> NPM: Checking installation
✓ The
npm
executable was found on your system at: /usr/local/bin/npm-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.7.0, meets the minimum requirements.
-> Yarn: Checking installation
✘ The
yarnpkg
executable could not be found on your system.For help setting up your Yarn environment please follow the instructions for you platform at:
https://yarnpkg.com/en/docs/install
-> PostgreSQL: Checking installation
✘ The
postgres
executable could not be found on your system.For help setting up your Postgres environment please follow the instructions for you platform at:
https://www.postgresql.org/download/
-> MySQL: Checking installation
✘ The
mysql
executable could not be found on your system.For help setting up your MySQL environment please follow the instructions for you platform at:
https://www.mysql.com/downloads/
-> SQLite3: Checking installation
✓ The
sqlite3
executable was found on your system at: /usr/bin/sqlite3-> SQLite3: Checking minimum version requirements
✓ Your version of SQLite3, 3.24.0, meets the minimum requirements.
-> Cockroach: Checking installation
✘ The
cockroach
executable could not be found on your system.For help setting up your Cockroach environment please follow the instructions for you platform at:
https://www.cockroachlabs.com/docs/stable/
-> Buffalo: Checking installation
✓ The
buffalo
executable was found on your system at: /usr/local/bin/buffalo-> Buffalo: Checking minimum version requirements
✓ Your version of Buffalo, v0.14.3, meets the minimum requirements.
-> Buffalo: Application Details
Pwd /Users/myuser/go
Root /Users/myuser/go
GoPath /Users/myuser/go
PackagePkg ../go
ActionsPkg ../go/actions
ModelsPkg ../go/models
GriftsPkg ../go/grifts
WithModules false
Name go
Bin bin/go
VCS
WithPop false
WithSQLite false
WithDep false
WithWebpack false
WithNodeJs false
WithYarn false
WithDocker false
WithGrifts false
AsWeb true
AsAPI false
InApp false
PackageJSON {map[]}
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
not really:
$ echo $GOPATH
/Users/myuser/go
Go requires yours code to live under GOPATH/src as the message states.
thanks, that helped!
Steps to Reproduce the Problem
Info
Please run
buffalo info
and paste the information below where it says "PASTE_HERE".