acoustic-carpenter-78188
06/25/2023, 2:38 PMbrew install go command which apparently does not bother exporting GOPATH environment variable. So if we try to build Flyte code from the source, make compile command fails with below error.
<http://github.com/flyteorg/flyte/cmd|github.com/flyteorg/flyte/cmd>
mv ./flyte /bin || echo "Skipped copying 'flyte' to /bin"
mv: fastcopy: open() failed (to): /bin/flyte: Operation not permitted
Skipped copying 'flyte' to /bin
Below line in Makefile is using GOPATH environment variable.
mv ./flyte ${GOPATH}/bin || echo "Skipped copying 'flyte' to ${GOPATH}/bin"
This is not a show stopper but we can simply check if this environment variable is set and handle the error accordingly.
What if we do not do this?
We have to set GOPATH environment variable and then retry make compile command.
Related component(s)
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyte