<#3802 [Housekeeping] Show warning or error messag...
# flyte-github
a
#3802 [Housekeeping] Show warning or error message if GOPATH environment variable is not set Issue created by shekhar-kotekar Describe the issue On Mac M1 system, golang is installed using
brew 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.
Copy code
<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