We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cda84be commit 4b1c6cdCopy full SHA for 4b1c6cd
Makefile
@@ -20,7 +20,7 @@ IMPORT := code.gitea.io/gitea
20
21
GO ?= go
22
SHASUM ?= shasum -a 256
23
-HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" )
+HAS_GO := $(shell hash $(GO) > /dev/null 2>&1 && echo yes)
24
COMMA := ,
25
26
XGO_VERSION := go-1.20.x
@@ -41,7 +41,7 @@ DOCKER_IMAGE ?= gitea/gitea
41
DOCKER_TAG ?= latest
42
DOCKER_REF := $(DOCKER_IMAGE):$(DOCKER_TAG)
43
44
-ifeq ($(HAS_GO), GO)
+ifeq ($(HAS_GO), yes)
45
GOPATH ?= $(shell $(GO) env GOPATH)
46
export PATH := $(GOPATH)/bin:$(PATH)
47
0 commit comments