Develop: Update install-go-tools.sh #3555

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-07-20 08:36:01 +02:00
parent 68b40babfa
commit 70ad541c01

View file

@ -41,11 +41,11 @@ mkdir -p "$GOPATH/src"
case $DESTARCH in
arm | ARM | aarch | armv7l | armhf)
# no additional tools on ARMv7 to reduce build time
echo "Skipping installation of goimports, go-mod-outdated, and richgo."
echo "Skipping installation of Go tools."
;;
*)
echo "Installing goimports, go-mod-outdated, and richgo in /usr/local/bin..."
echo "Installing Go tools in /usr/local/bin..."
GOBIN="/usr/local/bin" go install golang.org/x/tools/cmd/goimports@latest
GOBIN="/usr/local/bin" go install github.com/psampaz/go-mod-outdated@latest
GOBIN="/usr/local/bin" go install github.com/mikefarah/yq/v4@latest