diff options
author | silverwind <me@silverwind.io> | 2022-09-07 23:35:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 17:35:54 -0400 |
commit | 52c2ef79023541f36fbb72b2e4598cb6f693335f (patch) | |
tree | 1f40ade459d6dbe62feb7e8b57b3cebef56f10ac /Makefile | |
parent | 8b8bdb30fbc522c38a35aad46a0036b926f5db9d (diff) | |
download | gitea-52c2ef79023541f36fbb72b2e4598cb6f693335f.tar.gz gitea-52c2ef79023541f36fbb72b2e4598cb6f693335f.zip |
Rewrite go license generator in go (#21078)
This removes the JS dependency in the checks pipeline. JSON output is
different because the previous JS did indent the license data
differently and a JSON key was changed, but the end result is the same
as it gets re-indented by wepack.
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -422,10 +422,10 @@ tidy-check: tidy .PHONY: go-licenses go-licenses: assets/go-licenses.json -assets/go-licenses.json: go.mod go.sum build/generate-go-licenses.js - -$(GO) run $(GO_LICENSES_PACKAGE) save . --force --save_path="$(GO_LICENSE_TMP_DIR)" 2>/dev/null - node build/generate-go-licenses.js "$(GO_LICENSE_TMP_DIR)" "$(GO_LICENSE_FILE)" - @rm -rf "$(GO_LICENSE_TMP_DIR)" +assets/go-licenses.json: go.mod go.sum + -$(GO) run $(GO_LICENSES_PACKAGE) save . --force --save_path=$(GO_LICENSE_TMP_DIR) 2>/dev/null + $(GO) run build/generate-go-licenses.go $(GO_LICENSE_TMP_DIR) $(GO_LICENSE_FILE) + @rm -rf $(GO_LICENSE_TMP_DIR) generate-ini-sqlite: sed -e 's|{{REPO_TEST_DIR}}|${REPO_TEST_DIR}|g' \ |