summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-04-05 23:48:55 -0500
committerGitHub <noreply@github.com>2020-04-06 12:48:55 +0800
commit1648bf2b60126f7959d92d176bf7f3cf3ae1cfe6 (patch)
treecc9067c0d63916afbb238b6779236b8978b7fb9c /Makefile
parent561e7a9a59046e9472bd7e732763024eb8887f7d (diff)
downloadgitea-1648bf2b60126f7959d92d176bf7f3cf3ae1cfe6.tar.gz
gitea-1648bf2b60126f7959d92d176bf7f3cf3ae1cfe6.zip
Turn off go modules for xgo and gxz (#10963)
* Turn off go modules for xgo and gxz Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add test release for PR Signed-off-by: jolheiser <john.olheiser@gmail.com> * Try with go modules off Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert Makefile, force a release test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Turn on GOPROXY for release Signed-off-by: jolheiser <john.olheiser@gmail.com> * CI Signed-off-by: jolheiser <john.olheiser@gmail.com> * CI Signed-off-by: jolheiser <john.olheiser@gmail.com> * Final commit Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index df786dccb6..81cd2c5054 100644
--- a/Makefile
+++ b/Makefile
@@ -497,7 +497,7 @@ release-windows: | $(DIST_DIRS)
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u src.techknowlogick.com/xgo; \
fi
- xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
+ GO111MODULE=off xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
ifeq ($(CI),drone)
cp /build/* $(DIST)/binaries
endif
@@ -507,7 +507,7 @@ release-linux: | $(DIST_DIRS)
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u src.techknowlogick.com/xgo; \
fi
- xgo -go $(XGO_VERSION) -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) .
+ GO111MODULE=off xgo -go $(XGO_VERSION) -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) .
ifeq ($(CI),drone)
cp /build/* $(DIST)/binaries
endif
@@ -517,7 +517,7 @@ release-darwin: | $(DIST_DIRS)
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u src.techknowlogick.com/xgo; \
fi
- xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
+ GO111MODULE=off xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out gitea-$(VERSION) .
ifeq ($(CI),drone)
cp /build/* $(DIST)/binaries
endif
@@ -533,7 +533,7 @@ release-check: | $(DIST_DIRS)
.PHONY: release-compress
release-compress: | $(DIST_DIRS)
@hash gxz > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
- $(GO) get -u github.com/ulikunitz/xz/cmd/gxz; \
+ GO111MODULE=off $(GO) get -u github.com/ulikunitz/xz/cmd/gxz; \
fi
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done;