diff options
author | zeripath <art27@cantab.net> | 2020-01-27 01:05:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-27 01:05:38 +0000 |
commit | 48abe41ea82f88235bd6a6a66f6a2d1701215b84 (patch) | |
tree | c4b42644f047f3f09314acd034f283f3804d2f68 /.gitignore | |
parent | d087f4fb735d860a394baf709f4cac5b945f9287 (diff) | |
download | gitea-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 '.gitignore')
-rw-r--r-- | .gitignore | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 6ce0311e4f..903e226ca9 100644 --- a/.gitignore +++ b/.gitignore @@ -34,8 +34,11 @@ _testmain.go coverage.all /modules/options/bindata.go +/modules/options/bindata.go.hash /modules/public/bindata.go +/modules/public/bindata.go.hash /modules/templates/bindata.go +/modules/templates/bindata.go.hash *.db *.log |