diff --git a/.bingo/Variables.mk b/.bingo/Variables.mk index cd90d103da6..01e058ce9b6 100644 --- a/.bingo/Variables.mk +++ b/.bingo/Variables.mk @@ -3,7 +3,7 @@ BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) GOPATH ?= $(shell go env GOPATH) GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) +GO ?= $(shell command -v go) # Below generated variables ensure that every time a tool under each variable is invoked, the correct version # will be used; reinstalling only if needed. diff --git a/Makefile b/Makefile index 212458e4ba5..6b8059ea2fd 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ PHP_CODEBEAUTIFIER=vendor-bin/php_codesniffer/vendor/bin/phpcbf PHAN=php -d zend.enable_gc=0 vendor-bin/phan/vendor/bin/phan PHPSTAN=php -d zend.enable_gc=0 vendor-bin/phpstan/vendor/bin/phpstan -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include .bingo/Variables.mk endif diff --git a/extensions/app-provider/Makefile b/extensions/app-provider/Makefile index 54cdae4059b..eaf545ffa19 100644 --- a/extensions/app-provider/Makefile +++ b/extensions/app-provider/Makefile @@ -4,7 +4,7 @@ NAME := app-provider include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/app-registry/Makefile b/extensions/app-registry/Makefile index 8097c27d969..95586b00caf 100644 --- a/extensions/app-registry/Makefile +++ b/extensions/app-registry/Makefile @@ -4,7 +4,7 @@ NAME := app-registry include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/audit/Makefile b/extensions/audit/Makefile index 522b7bfcbdd..8813d069216 100644 --- a/extensions/audit/Makefile +++ b/extensions/audit/Makefile @@ -4,7 +4,7 @@ NAME := audit include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/auth-basic/Makefile b/extensions/auth-basic/Makefile index a87c8190d65..8335c0531ca 100644 --- a/extensions/auth-basic/Makefile +++ b/extensions/auth-basic/Makefile @@ -4,7 +4,7 @@ NAME := auth-basic include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/auth-bearer/Makefile b/extensions/auth-bearer/Makefile index cd958c461e1..d778d8c835b 100644 --- a/extensions/auth-bearer/Makefile +++ b/extensions/auth-bearer/Makefile @@ -4,7 +4,7 @@ NAME := auth-bearer include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/auth-machine/Makefile b/extensions/auth-machine/Makefile index e53ab3cbec7..66bf34f0a31 100644 --- a/extensions/auth-machine/Makefile +++ b/extensions/auth-machine/Makefile @@ -4,7 +4,7 @@ NAME := auth-machine include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/frontend/Makefile b/extensions/frontend/Makefile index d44b3161df5..b818323b17e 100644 --- a/extensions/frontend/Makefile +++ b/extensions/frontend/Makefile @@ -4,7 +4,7 @@ NAME := frontend include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/gateway/Makefile b/extensions/gateway/Makefile index f1130a590fd..240f960782b 100644 --- a/extensions/gateway/Makefile +++ b/extensions/gateway/Makefile @@ -4,7 +4,7 @@ NAME := gateway include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/graph-explorer/Makefile b/extensions/graph-explorer/Makefile index e83211bd580..08bb5da4693 100644 --- a/extensions/graph-explorer/Makefile +++ b/extensions/graph-explorer/Makefile @@ -4,7 +4,7 @@ NAME := graph-explorer include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/graph/Makefile b/extensions/graph/Makefile index df59c1a1d6c..67ad0d888d2 100644 --- a/extensions/graph/Makefile +++ b/extensions/graph/Makefile @@ -4,7 +4,7 @@ NAME := graph include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/groups/Makefile b/extensions/groups/Makefile index 2f439211d33..952dc2023c3 100644 --- a/extensions/groups/Makefile +++ b/extensions/groups/Makefile @@ -4,7 +4,7 @@ NAME := groups include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/idm/Makefile b/extensions/idm/Makefile index 0d04550af38..0919e6831f1 100644 --- a/extensions/idm/Makefile +++ b/extensions/idm/Makefile @@ -6,7 +6,7 @@ TAGS := disable_crypt include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/idp/Makefile b/extensions/idp/Makefile index 425e6fe8628..3084cdde9a9 100644 --- a/extensions/idp/Makefile +++ b/extensions/idp/Makefile @@ -4,7 +4,7 @@ NAME := idp include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/nats/Makefile b/extensions/nats/Makefile index 5da8c05591e..e08c864838c 100644 --- a/extensions/nats/Makefile +++ b/extensions/nats/Makefile @@ -4,7 +4,7 @@ NAME := nats include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/notifications/Makefile b/extensions/notifications/Makefile index 749bf8057bc..2982566e5b1 100644 --- a/extensions/notifications/Makefile +++ b/extensions/notifications/Makefile @@ -4,7 +4,7 @@ NAME := notifications include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/ocdav/Makefile b/extensions/ocdav/Makefile index 7fd2d03c35f..6a0849d2882 100644 --- a/extensions/ocdav/Makefile +++ b/extensions/ocdav/Makefile @@ -4,7 +4,7 @@ NAME := ocdav include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/ocs/Makefile b/extensions/ocs/Makefile index 51243d83fca..f739a4d2260 100644 --- a/extensions/ocs/Makefile +++ b/extensions/ocs/Makefile @@ -4,7 +4,7 @@ NAME := ocs include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/proxy/Makefile b/extensions/proxy/Makefile index c53d0e35dad..44e10f95e46 100644 --- a/extensions/proxy/Makefile +++ b/extensions/proxy/Makefile @@ -4,7 +4,7 @@ NAME := proxy include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/settings/Makefile b/extensions/settings/Makefile index 397bb11c3ef..a0c0e4104cb 100644 --- a/extensions/settings/Makefile +++ b/extensions/settings/Makefile @@ -9,7 +9,7 @@ test-acceptance-webui: ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/sharing/Makefile b/extensions/sharing/Makefile index 074fbff5df7..b264915fc0d 100644 --- a/extensions/sharing/Makefile +++ b/extensions/sharing/Makefile @@ -4,7 +4,7 @@ NAME := sharing include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/storage-publiclink/Makefile b/extensions/storage-publiclink/Makefile index 0ca4c966837..32f5f3b2397 100644 --- a/extensions/storage-publiclink/Makefile +++ b/extensions/storage-publiclink/Makefile @@ -4,7 +4,7 @@ NAME := storage-publiclink include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/storage-shares/Makefile b/extensions/storage-shares/Makefile index 6fc69fef890..fb62e2c67db 100644 --- a/extensions/storage-shares/Makefile +++ b/extensions/storage-shares/Makefile @@ -4,7 +4,7 @@ NAME := storage-shares include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/storage-system/Makefile b/extensions/storage-system/Makefile index 2b3adb1910a..b7a331a539d 100644 --- a/extensions/storage-system/Makefile +++ b/extensions/storage-system/Makefile @@ -4,7 +4,7 @@ NAME := storage-system include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/storage-users/Makefile b/extensions/storage-users/Makefile index f1e9ac0ba80..d96b83590af 100644 --- a/extensions/storage-users/Makefile +++ b/extensions/storage-users/Makefile @@ -4,7 +4,7 @@ NAME := storage-users include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/store/Makefile b/extensions/store/Makefile index 70cef069dcd..c56f393a12c 100644 --- a/extensions/store/Makefile +++ b/extensions/store/Makefile @@ -4,7 +4,7 @@ NAME := store include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/thumbnails/Makefile b/extensions/thumbnails/Makefile index 9e2fe5df800..c95d59f9ae0 100644 --- a/extensions/thumbnails/Makefile +++ b/extensions/thumbnails/Makefile @@ -4,7 +4,7 @@ NAME := thumbnails include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/users/Makefile b/extensions/users/Makefile index 1a5e7db4ec6..5c8db862a11 100644 --- a/extensions/users/Makefile +++ b/extensions/users/Makefile @@ -4,7 +4,7 @@ NAME := users include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/web/Makefile b/extensions/web/Makefile index 8682c057f2a..d409b636cbb 100644 --- a/extensions/web/Makefile +++ b/extensions/web/Makefile @@ -5,7 +5,7 @@ WEB_ASSETS_VERSION = v5.5.0-rc.6 include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/extensions/webdav/Makefile b/extensions/webdav/Makefile index c6418420a78..7a570b955f1 100644 --- a/extensions/webdav/Makefile +++ b/extensions/webdav/Makefile @@ -4,7 +4,7 @@ NAME := webdav include ../../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../../.bingo/Variables.mk endif diff --git a/ocis-pkg/Makefile b/ocis-pkg/Makefile index af35a8664a0..7a820fe1337 100644 --- a/ocis-pkg/Makefile +++ b/ocis-pkg/Makefile @@ -4,7 +4,7 @@ NAME := ocis-pkg include ../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../.bingo/Variables.mk endif diff --git a/ocis/Makefile b/ocis/Makefile index 2a35463242d..687806ec1a8 100644 --- a/ocis/Makefile +++ b/ocis/Makefile @@ -6,7 +6,7 @@ TAGS := disable_crypt include ../.make/recursion.mk ############ tooling ############ -ifneq (, $(shell which go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI +ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI include ../.bingo/Variables.mk GOARCH := $(shell go env GOARCH) endif