You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-15 00:15:00 +02:00
build: fix: configure fails if GOPATH environment variable not set
If the GOPATH enviroment variable was not set, go uses the default GOPATH (~/go/). The configure script was only checking if the GOPATH environment is set. If it wasn't the script was failing. Instead of checking if the GOPATH environment variable is set, check if "go env GOPATH" returns a non-emtpy string.
This commit is contained in:
1
configure
vendored
1
configure
vendored
@ -106,6 +106,7 @@ check_docker_version() {
|
|||||||
|
|
||||||
check_go_env() {
|
check_go_env() {
|
||||||
echo -n "Checking \$GOPATH... "
|
echo -n "Checking \$GOPATH... "
|
||||||
|
GOPATH="$(go env GOPATH)"
|
||||||
if [ -z "$GOPATH" ]; then
|
if [ -z "$GOPATH" ]; then
|
||||||
printf "${RED}invalid${NC} - GOPATH not set\n"
|
printf "${RED}invalid${NC} - GOPATH not set\n"
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user