That's right, I had modules enabled.
After moving the repo under go path src directory it worked fine.
echo $GOPATH
/Users/sidhesh/Development/gocode
~/Development/gocode/src/github.com/robaho/goanalyzer/cmd/goanalyzer$ go
build
~/Development/gocode/src/github.com/robaho/goanalyzer/cmd/goanalyzer$
Thanks !
On Sun, Aug 30, 2020 at 9:35 PM Siddhesh Divekar
wrote:
> That's right, I had modules enabled.
> After moving the repo under go path src directory it worked fine.
>
> echo $GOPATH
> /Users/sidhesh/Development/gocode
> ~/Development/gocode/src/github.com/robaho/goanalyzer/cmd/goanalyzer$
Tonight, I rebuilt and ran using Go 1.15 and it was fine (I cleared the entire
build cache using -a). Maybe you have modules enabled?
Here is the output:
GOROOT=/usr/local/Cellar/go/1.15/libexec #gosetup
GOPATH=/Users/robertengels/go #gosetup
/usr/local/Cellar/go/1.15/libexec/bin/go build -a -o
I have not tried building it in a while. I assume some internals have changed.
I’ll look into it.
> On Aug 29, 2020, at 7:08 PM, Siddhesh Divekar
> wrote:
>
> Hi,
>
> Has anyone tried building goanalyzer recently?
> Am I missing something very basic here.
>
> goanalyzer/cmd/goanalyzer$ ls
>
Hi,
Has anyone tried building goanalyzer recently?
Am I missing something very basic here.
goanalyzer/cmd/goanalyzer$ ls
annotations.go doc.go goroutines.go main.go pprof.go trace_test.go
annotations_test.go goanalyzer.iml internal mmu.go trace.go
trace_unix_test.go
goanalyzer/cmd/goanalyzer$ go