Closed c0debreaker closed 6 years ago
Your GOPATH is either incorrect or you’re outside of it. Can you please paste buffalo info
output?
Is it because I don't have BUFFALOPATH? One sec, let me run that command
Here is the output of buffalo info
https://gist.github.com/c0debreaker/a354cd8bed508453deece3075fe8e5f0
You’re using multiple GOPATHs, generally considered a bad idea because it breaks a lot of tooling. Also, the GOPATH you want to use is second, so it’s trying to use the first GOPATH and you get ../../ stuff.
Fix your GOPATH and things should work.
-- Mark Bates On Aug 10, 2018, 9:07 AM -0400, c0debreaker notifications@github.com, wrote:
Here is the output of buffalo info https://gist.github.com/c0debreaker/a354cd8bed508453deece3075fe8e5f0 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Got it. Do I remove GOROOT?
Yes. That’s old and should point to the Go installation, not your source code.
This guide should help, https://www.gopherguides.com/courses/preparing-your-environment-for-go-development
-- Mark Bates On Aug 10, 2018, 9:16 AM -0400, c0debreaker notifications@github.com, wrote:
Got it. Do I remove GOROOT? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Got it. Anyways, I tried single GOPATH, still no go
https://gist.github.com/c0debreaker/5552940a28b85eecd525b67aacab2aff
Did you fix all the broken imports from when you generated the app? You didn’t show the error after you changed the GOPATH. Your files are all corrupted with bad paths and need to be fixed before you can compile.
-- Mark Bates On Aug 10, 2018, 9:20 AM -0400, c0debreaker notifications@github.com, wrote:
Got it. Anyways, I tried single GOPATH, still no go https://gist.github.com/c0debreaker/5552940a28b85eecd525b67aacab2aff — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
sorry. The error was the same as my first post above. I'm currently following the installation instructions from the link you sent. I'll complete and test. I will provide more info.
my go is good
❯ go run main.go
2018/08/10 08:34:47 Success!
I went inside my original project which is under $HOME/go/src/some/path/there then I ran go get
.
The go get
is stalled. Not showing any signs of movement.
I ran ls -l $HOME/go/pkg
, still empty even after more than 5 mins.
Finally it stopped and got this error
❯ go get
# gitserver/crew/api/actions
actions/websocket.go:10:16: c.Websocket undefined (type buffalo.Context has no field or method Websocket)
I'll try it again once I get to work. Maybe because I'm tethered to my cellphone
It was removed in the last release. https://blog.gobuffalo.io/buffalo-v0-12-0-released-c8412c7198f0
-- Mark Bates On Aug 10, 2018, 9:46 AM -0400, c0debreaker notifications@github.com, wrote:
Finally it stopped and got this error ❯ go get
gitserver/crew/api/actions
actions/websocket.go:10:16: c.Websocket undefined (type buffalo.Context has no field or method Websocket) — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Here's the latest. I think the error is the same
❯ buffalo version
INFO[0000] Buffalo version is: v0.12.0
❯ go get
# gitserver/crew/api/actions
actions/websocket.go:10:16: c.Websocket undefined (type buffalo.Context has no field or method Websocket)
and here's the output of buffalo info - https://gist.github.com/c0debreaker/35fd4714026bcbae4a1accc5cda1ddb3
Its the same error, because that method doesn’t exist. See the link in my previous comment.
Oh I thought you mentioned it was removed from version 0.11. So I downloaded version 0.12 Got it
Version - go version go1.10.3 darwin/amd64
Buffalo - Buffalo version is: v0.11.1