summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--build.go (renamed from build/vendor.go)7
-rw-r--r--main.go3
3 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 9663e8b6dd..7af41ab74b 100644
--- a/Makefile
+++ b/Makefile
@@ -301,7 +301,7 @@ unit-test-coverage:
.PHONY: vendor
vendor:
- $(GO) mod tidy && $(GO) mod vendor
+ $(GO) mod tidy && TAGS="$(TAGS) vendor" $(GO) mod vendor
.PHONY: test-vendor
test-vendor: vendor
diff --git a/build/vendor.go b/build.go
index d51fbf21fb..22c6ded99c 100644
--- a/build/vendor.go
+++ b/build.go
@@ -2,7 +2,12 @@
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
-package build
+//+build vendor
+
+package main
+
+// Libraries that are included to vendor utilities used during build.
+// These libraries will not be included in a normal compilation.
import (
// for lint
diff --git a/main.go b/main.go
index ecf161bf10..90feaa9bb0 100644
--- a/main.go
+++ b/main.go
@@ -21,9 +21,6 @@ import (
_ "code.gitea.io/gitea/modules/markup/markdown"
_ "code.gitea.io/gitea/modules/markup/orgmode"
- // for build
- _ "code.gitea.io/gitea/build"
-
"github.com/urfave/cli"
)