Open d-rupp opened 3 years ago
Had a chance to look at this in more detail.
If i remove lines 82-85 from build.sh it builds just fine. But i can´t figure out why the test fails. Tried to reproduce it in the golang image itself and it works fine for me.
Removed this:
if [[ ! -x "$( which go )" ]]; then
echo "go binary not found in PATH"
ok=1
fi
Testing (with golang:1.16.6-alpine3.14 image):
[root@orchestrator1.dev orchestrator]$ docker exec -it gotest /bin/sh
/go # which go
/usr/local/go/bin/go
/go # ls -al $( which go )
-rwxr-xr-x 1 root root 14072854 Jul 13 00:44 /usr/local/go/bin/go
/go # [[ ! -x "$( which go )" ]] && echo "yep"
/go # [[ -x "$( which go )" ]] && echo "yep"
yep
Hello!
I tried updating to 3.2.6 from 3.2.5 and encountered this issue while not changing anything else.
Building from the Dockerfile fails because it can not find the go binary.