Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

dep init failed on buffalo new #1806

Closed
deogracia opened this issue Oct 16, 2019 · 3 comments
Closed

dep init failed on buffalo new #1806

deogracia opened this issue Oct 16, 2019 · 3 comments
Labels
dependency update module dependencies wontfix This will not be worked on

Comments

@deogracia
Copy link

deogracia commented Oct 16, 2019

Description

Using --with-dep when instantiating a new project, dep failed

Steps to Reproduce the Problem

Run buffalo new coke --with-dep

Expected Behavior

It should output something like https://gobuffalo.io/en/docs/getting-started/new-project/, with a bash return code equals to 0

Actual Behavior

It failed with ERRO[0055] Error: exit status 1

buffalo new coke --with-dep
DEBU[2019-10-16T09:41:24+02:00] Step: 02776efc
DEBU[2019-10-16T09:41:24+02:00] Chdir: /home/deogracia/go/src/github.com/deogracia/coke
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/.codeclimate.yml
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/.env
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/README.md
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/actions/actions_test.go
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/actions/app.go
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/actions/home.go
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/actions/home_test.go
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/actions/render.go
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/fixtures/sample.toml
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/grifts/init.go
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/inflections.json
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/main.go
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/config/buffalo-app.toml
DEBU[2019-10-16T09:41:24+02:00] Step: 50665b74
DEBU[2019-10-16T09:41:24+02:00] Chdir: /home/deogracia/go/src/github.com/deogracia/coke
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/.dockerignore
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/Dockerfile
DEBU[2019-10-16T09:41:24+02:00] Step: 0fd838d8
DEBU[2019-10-16T09:41:24+02:00] Chdir: /home/deogracia/go/src/github.com/deogracia/coke
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/grifts/db.go
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/models/models.go
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/models/models_test.go
DEBU[2019-10-16T09:41:24+02:00] Exec: go get github.com/gobuffalo/pop
DEBU[2019-10-16T09:41:24+02:00] Step: 3e99b9bf
DEBU[2019-10-16T09:41:24+02:00] Chdir: /home/deogracia/go/src/github.com/deogracia/coke
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/database.yml
DEBU[2019-10-16T09:41:24+02:00] Step: 7fa5092a
DEBU[2019-10-16T09:41:24+02:00] Chdir: /home/deogracia/go/src/github.com/deogracia/coke
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/.buffalo.dev.yml
DEBU[2019-10-16T09:41:24+02:00] Step: b7c4d226
DEBU[2019-10-16T09:41:24+02:00] Chdir: /home/deogracia/go/src/github.com/deogracia/coke
DEBU[2019-10-16T09:41:24+02:00] Exec: go get github.com/gobuffalo/buffalo-pop
DEBU[2019-10-16T09:41:24+02:00] Step: 74483e8e
DEBU[2019-10-16T09:41:24+02:00] Chdir: /home/deogracia/go/src/github.com/deogracia/coke
DEBU[2019-10-16T09:41:24+02:00] File: /home/deogracia/go/src/github.com/deogracia/coke/config/buffalo-plugins.toml
DEBU[2019-10-16T09:41:24+02:00] Step: 0b8c3082
DEBU[2019-10-16T09:41:24+02:00] Chdir: /home/deogracia/go/src/github.com/deogracia/coke
DEBU[2019-10-16T09:41:24+02:00] LookPath: dep
DEBU[2019-10-16T09:41:24+02:00] Exec: dep init
init failed: unable to solve the dependency graph: Solving failure: No versions of github.com/jackc/pgproto3 met constraints:
	v2.0.0: Could not introduce github.com/jackc/pgproto3@v2.0.0, as its subpackage github.com/jackc/pgproto3/v2 is missing. (Package is required by github.com/jackc/pgconn@master.)
	v1.1.0: Could not introduce github.com/jackc/pgproto3@v1.1.0, as its subpackage github.com/jackc/pgproto3/v2 is missing. (Package is required by github.com/jackc/pgconn@master.)
	v1.0.0: Could not introduce github.com/jackc/pgproto3@v1.0.0, as its subpackage github.com/jackc/pgproto3/v2 is missing. (Package is required by github.com/jackc/pgconn@master.)
	v2.0.0-rc3: Could not introduce github.com/jackc/pgproto3@v2.0.0-rc3, as its subpackage github.com/jackc/pgproto3/v2 is missing. (Package is required by github.com/jackc/pgconn@master.)
	v2.0.0-rc2: Could not introduce github.com/jackc/pgproto3@v2.0.0-rc2, as its subpackage github.com/jackc/pgproto3/v2 is missing. (Package is required by github.com/jackc/pgconn@master.)
	v2.0.0-rc1: Could not introduce github.com/jackc/pgproto3@v2.0.0-rc1, as its subpackage github.com/jackc/pgproto3/v2 is missing. (Package is required by github.com/jackc/pgconn@master.)
	v2.0.0-alpha1: Could not introduce github.com/jackc/pgproto3@v2.0.0-alpha1, as its subpackage github.com/jackc/pgproto3/v2 is missing. (Package is required by github.com/jackc/pgconn@master.)
	master: Could not introduce github.com/jackc/pgproto3@master, as its subpackage github.com/jackc/pgproto3/v2 is missing. (Package is required by github.com/jackc/pgconn@master.)
	exp: Could not introduce github.com/jackc/pgproto3@exp, as its subpackage github.com/jackc/pgproto3/v2 is missing. (Package is required by github.com/jackc/pgconn@master.)
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] (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[0053] Error: exit status 1                         

echo $?
255

Info

buffalo info

buffalo info
-> Go: Checking installation
✓ The `go` executable was found on your system at: /home/deogracia/local/go/bin/go

-> Go: Checking minimum version requirements
✓ Your version of Go, 1.12.3, meets the minimum requirements.

-> Go: Checking GOPATH
✓ You appear to be operating inside of your GOPATH.

-> 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
* Dep - https://github.com/golang/dep

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 /home/deogracia/go/bin.

-> Node: Checking installation
✓ The `node` executable was found on your system at: /home/deogracia/.nvm/versions/node/v10.15.3/bin/node

-> Node: Checking minimum version requirements
✓ Your version of Node, v10.15.3, meets the minimum requirements.

-> NPM: Checking installation
✓ The `npm` executable was found on your system at: /home/deogracia/.nvm/versions/node/v10.15.3/bin/npm

-> NPM: Checking minimum version requirements
✓ Your version of NPM, 6.4.1, 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 was found on your system at: /usr/bin/mysql

-> MySQL: Checking minimum version requirements
✓ Your version of MySQL, 15.1, meets the minimum requirements.

-> 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.16.2, 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: /home/deogracia/bin/buffalo

-> Buffalo: Checking minimum version requirements
✓ Your version of Buffalo, v0.14.10, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /home/deogracia/go/src/github.com/deogracia
Root        /home/deogracia/go/src/github.com/deogracia
GoPath      /home/deogracia/go
PackagePkg  github.com/deogracia
ActionsPkg  github.com/deogracia/actions
ModelsPkg   github.com/deogracia/models
GriftsPkg   github.com/deogracia/grifts
WithModules false
Name        deogracia
Bin         bin/deogracia
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[]}

dep version

dep:
 version     : v0.5.4
 build date  : 2019-07-01
 git hash    : 1f7c19e
 go version  : go1.12.6
 go compiler : gc
 platform    : linux/amd64
 features    : ImportDuringSolve=false

/etc/os-release

PRETTY_NAME="Devuan GNU/Linux ascii"
NAME="Devuan GNU/Linux"
ID=devuan
ID_LIKE=debian
HOME_URL="https://www.devuan.org/"
SUPPORT_URL="https://devuan.org/os/community"
BUG_REPORT_URL="https://bugs.devuan.org/"
@laynemcnish
Copy link
Contributor

I also ran into this when generating a project last week and ended up giving up on using dep.

@markbates
Copy link
Member

#1545

Dep support is being dropped in the next release, RC 1 next week. I would suggest moving to modules instead of dep.

@markbates markbates added dependency update module dependencies deps-dep wontfix This will not be worked on labels Oct 17, 2019
@deogracia
Copy link
Author

thanks @markbates ! I didn't pay attention to #1545 until you point it to me.
The buffalo info output lead me to use go module instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependency update module dependencies wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants