cuddly-jelly-27016
05/15/2025, 12:10 AMbrew 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.
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/flytecuddly-jelly-27016
05/15/2025, 12:10 AM