diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2020-04-05 00:35:02 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-05 11:35:02 +0800 |
commit | b74d30ae275b4f025f689efca748dd0cbd826b22 (patch) | |
tree | 54e04add22ee0d113a96431843f9bc9451809dee /build.go | |
parent | 6cf71ee0e8178a2775d2d1041912ca45372805fb (diff) | |
download | gitea-b74d30ae275b4f025f689efca748dd0cbd826b22.tar.gz gitea-b74d30ae275b4f025f689efca748dd0cbd826b22.zip |
Prevent support libraries from compiling into Gitea (#10964)
* Prevent support libraries from compiling into Gitea
* Fix tag position
* Fix golangci-lint errors
* Refactor to make it work
Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
Diffstat (limited to 'build.go')
-rw-r--r-- | build.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/build.go b/build.go new file mode 100644 index 0000000000..22c6ded99c --- /dev/null +++ b/build.go @@ -0,0 +1,26 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +//+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 + _ "github.com/BurntSushi/toml" + _ "github.com/mgechev/dots" + _ "github.com/mgechev/revive/formatter" + _ "github.com/mgechev/revive/lint" + _ "github.com/mgechev/revive/rule" + _ "github.com/mitchellh/go-homedir" + + // for embed + _ "github.com/shurcooL/vfsgen" + + // for cover merge + _ "golang.org/x/tools/cover" +) |