Open JacobCrofts opened 3 years ago
Is it because of old version of golang? what version are you using?
This did the trick for me
Download all dependencies: go mod tidy
or go mod download
Download thriftrw explicitly: go get -u go.uber.org/thriftrw
Then add the go binary path to bash path: export PATH=$PATH:/Users/me/go/bin
(This is where the thriftrw executable will be found on a mac)
Then run make bins
credits: @longquanzheng
@JacobCrofts I added some more documentation https://github.com/uber/cadence/pull/3832 Can you try it again. And thanks @spmistry for helping out.
@longquanzheng @spmistry thank you both for your help! I followed the doc improvements in #3832 and this resolved my issue. Previously, my $GOPATH
was empty so I'm guessing that was the problem.
Describe the bug
When I run
make bins
, I get the following dependency issue. I don't know how to debug it because I haven't worked with Go before. I think it's worth documenting how to fix this, as I'm sure there are other devs out there who want to use the CLI, prefer not using the docker image for whatever reason, and have not yet embraced The Way of the Gopher.I would appreciate some help figuring out why this is happening. Once we do, I'll update the CLI README for the benefit of anyone else who has this problem.
EDIT
I tried
go get -u go.uber.org/thriftrw
as a shot in the dark, but it didn't seem to change anything.To Reproduce Is the issue reproducible?
Steps to reproduce the behavior:
Here is exactly what I did, having never installed Go before:
Expected behavior
I would expect this to build an executable file that I can use to run the Cadence CLI.
Screenshots n/a
Additional context n/a