summaryrefslogtreecommitdiffstats
path: root/modules/templates/templates.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-06-03 05:43:47 +0800
committerLauris BH <lauris@nix.lv>2019-06-03 00:43:47 +0300
commit83b90e41999d30e4abb46f6bf0f1c3359cfd4d04 (patch)
tree4a15e9a42a850534a00346116da84153600a3027 /modules/templates/templates.go
parent8eba27c79257c6bc68cefbdffbb36d3596e6d3ee (diff)
downloadgitea-83b90e41999d30e4abb46f6bf0f1c3359cfd4d04.tar.gz
gitea-83b90e41999d30e4abb46f6bf0f1c3359cfd4d04.zip
Use vfsgen instead of go-bindata (#7080)
* use vfsgen instead of go-bindata * fix templates * fix fmt * vendor vsfgen
Diffstat (limited to 'modules/templates/templates.go')
-rw-r--r--modules/templates/templates.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/templates/templates.go b/modules/templates/templates.go
index 91c8db5228..e7fe3b2bfb 100644
--- a/modules/templates/templates.go
+++ b/modules/templates/templates.go
@@ -4,7 +4,5 @@
package templates
-//go:generate go-bindata -tags "bindata" -ignore "\\.go" -pkg "templates" -o "bindata.go" ../../templates/...
+//go:generate go run -mod=vendor main.go
//go:generate go fmt bindata.go
-//go:generate sed -i.bak s/..\/..\/templates\/// bindata.go
-//go:generate rm -f bindata.go.bak