Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find package "httpServer" in any of: /usr/local/Cellar/go/1.14.3/libexec/src/httpServer (from $GOROOT) #15

Open
ferismed opened this issue Jun 1, 2020 · 2 comments

Comments

@ferismed
Copy link

ferismed commented Jun 1, 2020

I have this issue
cannot find package "httpServer" in any of: /usr/local/Cellar/go/1.14.3/libexec/src/httpServer (from $GOROOT)

when
I want to run
go build main.go

I followed the path of the issue and I don't see any httpServer file or folder, can somebody help me?
More info:

MacBook-Pro:src fernandamedina$ go version
go version go1.14.3 darwin/amd64
MacBook-Pro:src fernandamedina$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/somewhere/else/bin"
GOCACHE="/Users/fernandamedina/Library/Caches/go-build"
GOENV="/Users/fernandamedina/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/fernandamedina/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14.3/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
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/bh/6765jwl10tl6hq1p9zcz9fjw0000gn/T/go-build916815074=/tmp/go-build -gno-record-gcc-switches -fno-common"

@andrii-kovtko
Copy link

Hello ferismed,
I think the problem is GOPATH value. Set "GOPATH" environment variable to the path to the automated-channel-testing folder should help.
Thank you

@jonyet
Copy link

jonyet commented Apr 22, 2021

in case anyone else hits this, i have to use GO111MODULE=auto go build main.go to work around this issue

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

No branches or pull requests

3 participants