Go has a nice tool to inspect the currently set (or default) `GOPATH`
with `go env GOPATH`.
We should do that rather than absolutely requiring people to manually
set `GOPATH` or use the `AUTO_GOPATH`.
This doesn't actually remove `AUTO_GOPATH`, people can still use it.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
| ... | ... |
@@ -77,12 +77,6 @@ if [ "$AUTO_GOPATH" ]; then |
| 77 | 77 |
export GOPATH="${PWD}/.gopath"
|
| 78 | 78 |
fi |
| 79 | 79 |
|
| 80 |
-if [ ! "$GOPATH" ]; then |
|
| 81 |
- echo >&2 'error: missing GOPATH; please see https://pkg.go.dev/cmd/go#hdr-GOPATH_environment_variable' |
|
| 82 |
- echo >&2 ' alternatively, set AUTO_GOPATH=1' |
|
| 83 |
- exit 1 |
|
| 84 |
-fi |
|
| 85 |
- |
|
| 86 | 80 |
if [ -z "${EXCLUDE_AUTO_BUILDTAG_JOURNALD:-}" ] && ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then
|
| 87 | 81 |
DOCKER_BUILDTAGS+=" journald" |
| 88 | 82 |
fi |