aboutsummaryrefslogtreecommitdiffstats
path: root/modules/options/options.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-01-27 01:05:38 +0000
committerGitHub <noreply@github.com>2020-01-27 01:05:38 +0000
commit48abe41ea82f88235bd6a6a66f6a2d1701215b84 (patch)
treec4b42644f047f3f09314acd034f283f3804d2f68 /modules/options/options.go
parentd087f4fb735d860a394baf709f4cac5b945f9287 (diff)
downloadgitea-48abe41ea82f88235bd6a6a66f6a2d1701215b84.tar.gz
gitea-48abe41ea82f88235bd6a6a66f6a2d1701215b84.zip
Generate Bindata iff TAGS="bindata" and not up-to-date (#10004)
* Only generate bindata if necessary * Only generate bindata if they are not up-to-date * generate a hash of the fileinfo and use that to keep up-to-date * Newer test is redundant * handle missing bindata and clean * Only update hash after successful write * switch to sha1 hash * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'modules/options/options.go')
-rw-r--r--modules/options/options.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/options/options.go b/modules/options/options.go
index 62e8c041bd..6ba3bd6a86 100644
--- a/modules/options/options.go
+++ b/modules/options/options.go
@@ -4,8 +4,6 @@
package options
-//go:generate go run -mod=vendor main.go
-
type directorySet map[string][]string
func (s directorySet) Add(key string, value []string) {