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

buffalo dev: Package imported from implicitly required module #2117

Closed
theothermatt opened this issue Jun 18, 2021 · 1 comment · Fixed by #2126
Closed

buffalo dev: Package imported from implicitly required module #2117

theothermatt opened this issue Jun 18, 2021 · 1 comment · Fixed by #2126

Comments

@theothermatt
Copy link

Description

Running buffalo dev on a fresh project generated with buffalo new results in the following error:

buffalo: 2021/06/18 17:11:44 === Error! ===
buffalo: 2021/06/18 17:11:44 === exit status 1
go: btest2/actions: package github.com/gobuffalo/envy imported from implicitly required module; to add missing requirements, run:
	go get github.com/gobuffalo/[email protected]
go: btest2/actions: package github.com/gobuffalo/packr/v2 imported from implicitly required module; to add missing requirements, run:
	go get github.com/gobuffalo/packr/[email protected]
go: btest2/models: package github.com/gobuffalo/envy imported from implicitly required module; to add missing requirements, run:
	go get github.com/gobuffalo/[email protected]
go: btest2/models: package github.com/gobuffalo/pop/v5 imported from implicitly required module; to add missing requirements, run:
	go get github.com/gobuffalo/pop/[email protected]
 ===

Steps to Reproduce the Problem

  1. buffalo new test
  2. cd test
  3. buffalo dev
  4. Error.

Expected Behavior

I expected to have a running instance of the new app, as per https://gobuffalo.io/en/docs/getting-started/new-project/#running-your-application-in-development

Actual Behavior

Dev server doesn't run, therefore there's nothing in the browser at http://localhost:3000

Info

Please run buffalo info and paste the information below where it says "PASTE_HERE".

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

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

-> Go: Checking Package Management
✓ You are using Go Modules (`go`) for package management.

-> Go: Checking PATH
✓ Your PATH contains /Users/theothermatt/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, v14.17.1, 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.14.13, meets the minimum requirements.

-> Yarn: Checking installation
✓ The `yarnpkg` executable was found on your system at: /usr/local/bin/yarnpkg

-> Yarn: Checking minimum version requirements
✓ Your version of Yarn, 1.22.10, meets the minimum requirements.

-> PostgreSQL: Checking installation
✓ The `postgres` executable was found on your system at: /Applications/Postgres.app/Contents/Versions/latest/bin/postgres

-> PostgreSQL: Checking minimum version requirements
✓ Your version of PostgreSQL, 13.3.0, meets the minimum requirements.

-> 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.28.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 (CLI): Checking installation
✓ The `buffalo` executable was found on your system at: /usr/local/bin/buffalo

-> Buffalo (CLI): Checking minimum version requirements
✓ Your version of Buffalo (CLI), v0.16.23, meets the minimum requirements.

-> Buffalo: Application Details
Pwd         /Users/theothermatt/code/bctu/btest2
Root        /Users/theothermatt/code/bctu/btest2
GoPath      /Users/theothermatt/go
PackagePkg  btest2
ActionsPkg  btest2/actions
ModelsPkg   btest2/models
GriftsPkg   btest2/grifts
WithModules true
Name        btest2
Bin         bin/btest2
VCS         git
WithPop     true
WithSQLite  false
WithDep     false
WithWebpack true
WithNodeJs  true
WithYarn    true
WithDocker  true
WithGrifts  true
AsWeb       true
AsAPI       false
InApp       true
PackageJSON {map[build:webpack -p --progress dev:webpack --watch]}

-> Buffalo: config/buffalo-app.toml
name = "btest2"
bin = "bin/btest2"
vcs = "git"
with_pop = true
with_sqlite = false
with_dep = false
with_webpack = true
with_nodejs = true
with_yarn = true
with_docker = true
with_grifts = true
as_web = true
as_api = false

-> Buffalo: config/buffalo-plugins.toml
[[plugin]]
  binary = "buffalo-pop"
  go_get = "github.com/gobuffalo/buffalo-pop/v2"

-> Buffalo: go.mod
module btest2

go 1.16

require github.com/gobuffalo/buffalo-pop/v2 v2.3.0 // indirect
@fasmat
Copy link
Member

fasmat commented Jul 7, 2021

I can confirm that this is still happening with buffalo v0.16.26. There is a simple fix you can do for now. Before starting buffalo dev call go mod tidy this will add the missing dependencies. The application should then compile and start without any errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants