Skip to content

Commit 9990430

Browse files
Build gitea1.11 with go1.13 (#10584)
1 parent 6f5656a commit 9990430

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ release-windows:
447447
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
448448
$(GO) get -u src.techknowlogick.com/xgo; \
449449
fi
450-
xgo -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
450+
xgo -go go-1.13 -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
451451
ifeq ($(CI),drone)
452452
cp /build/* $(DIST)/binaries
453453
endif
@@ -457,7 +457,7 @@ release-linux:
457457
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
458458
$(GO) get -u src.techknowlogick.com/xgo; \
459459
fi
460-
xgo -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64,linux/mips64le,linux/mips,linux/mipsle' -out gitea-$(VERSION) .
460+
xgo -go go-1.13 -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64,linux/mips64le,linux/mips,linux/mipsle' -out gitea-$(VERSION) .
461461
ifeq ($(CI),drone)
462462
cp /build/* $(DIST)/binaries
463463
endif
@@ -467,7 +467,7 @@ release-darwin:
467467
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
468468
$(GO) get -u src.techknowlogick.com/xgo; \
469469
fi
470-
xgo -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
470+
xgo -go go-1.13 -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
471471
ifeq ($(CI),drone)
472472
cp /build/* $(DIST)/binaries
473473
endif

0 commit comments

Comments
 (0)