summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorCherrg <michael@gnehr.de>2019-07-06 17:16:43 +0200
committerzeripath <art27@cantab.net>2019-07-06 16:16:43 +0100
commit86750325c76ec18c253fabd4aeed72caca0ee946 (patch)
tree96fcbcf078e9170c627f723ef6967c29b28f4b8d /Makefile
parent49ee9d27718c31d5ab4fe9543fefc90cd40d4405 (diff)
downloadgitea-86750325c76ec18c253fabd4aeed72caca0ee946.tar.gz
gitea-86750325c76ec18c253fabd4aeed72caca0ee946.zip
workaround broken drone build (#7362)
* workaround broken swagger only master brach is not working, latest release seems to work Signed-off-by: Michael Gnehr <michael@gnehr.de> * make vendor Signed-off-by: Michael Gnehr <michael@gnehr.de> * Don't export GO111MODULE * set go-swagger to fixed release version mentioned here: https://github.com/go-gitea/gitea/pull/7362#discussion_r300831537 Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index be66cb3ef3..796a0e3b53 100644
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@ generate:
.PHONY: generate-swagger
generate-swagger:
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
- $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger; \
+ GO111MODULE="on" $(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger@v0.19.0; \
fi
swagger generate spec -o './$(SWAGGER_SPEC)'
$(SED_INPLACE) '$(SWAGGER_SPEC_S_TMPL)' './$(SWAGGER_SPEC)'