gobuffalo / buffalo

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

middleware not found #1669

Closed edwinyoyada closed 5 years ago

edwinyoyada commented 5 years ago

Description

I cloned a project from github, then i run go get ./... then i got

package github.com/gobuffalo/buffalo/middleware: cannot find package "github.com/gobuffalo/buffalo/middleware" in any of:
        /usr/local/Cellar/go/1.11.2/libexec/src/github.com/gobuffalo/buffalo/middleware (from $GOROOT)
        /Users/edwinpratama/Documents/workspace/go/src/github.com/gobuffalo/buffalo/middleware (from $GOPATH)
package github.com/gobuffalo/buffalo/middleware/ssl: cannot find package "github.com/gobuffalo/buffalo/middleware/ssl" in any of:
        /usr/local/Cellar/go/1.11.2/libexec/src/github.com/gobuffalo/buffalo/middleware/ssl (from $GOROOT)
        /Users/edwinpratama/Documents/workspace/go/src/github.com/gobuffalo/buffalo/middleware/ssl (from $GOPATH)

Steps to Reproduce the Problem

  1. Clone a project that's still using middleware repo
  2. Run go get ./...
  3. Get the error as described above

Expected Behavior

To be successful to install

Actual Behavior

Error for not getting the middleware instead

Info

```### Buffalo Version v0.13.13 ### App Information Pwd=/Users/edwinpratama/Documents/workspace/go/src/github.com/xendit/xendit-ovo-connector Root=/Users/edwinpratama/Documents/workspace/go/src/github.com/xendit/xendit-ovo-connector GoPath=/Users/edwinpratama/Documents/workspace/go Name=xendit-ovo-connector Bin=bin/xendit-ovo-connector PackagePkg=github.com/xendit/xendit-ovo-connector ActionsPkg=github.com/xendit/xendit-ovo-connector/actions ModelsPkg=github.com/xendit/xendit-ovo-connector/models GriftsPkg=github.com/xendit/xendit-ovo-connector/grifts VCS=git WithPop=true WithSQLite=false WithDep=false WithWebpack=false WithYarn=false WithDocker=true WithGrifts=true WithModules=false ### Go Version go version go1.12.4 darwin/amd64 ### Go Env GOARCH="amd64" GOBIN="" GOCACHE="/Users/edwinpratama/Library/Caches/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/edwinpratama/Documents/workspace/go" GOPROXY="" GORACE="" GOROOT="/usr/local/Cellar/go/1.11.2/libexec" GOTMPDIR="" GOTOOLDIR="/usr/local/Cellar/go/1.11.2/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3g/98n_r77517g4n18spb2mlcrr0000gn/T/go-build538284050=/tmp/go-build -gno-record-gcc-switches -fno-common" ### Node Version v8.16.0 ### NPM Version 6.4.1 ### Yarn Version Yarn Not Found ### PostgreSQL Version pg_ctl (PostgreSQL) 11.2 ### MySQL Version MySQL Not Found ### SQLite Version 3.24.0 2018-06-04 14:10:15 95fbac39baaab1c3a84fdfc82ccb7f42398b2e92f18a2a57bce1d4a713cbaapl ### Dep Version could not find a Gopkg.toml file ### Dep Status could not find a Gopkg.toml file ```

Thanks!

stanislas-m commented 5 years ago

Please try running buffalo fix on your project, it should handle this case.