mirror of
https://github.com/dokku/dokku.git
synced 2026-07-10 20:40:43 +02:00
The bash :report implementation for the git plugin is replaced with a compiled golang binary. Property, computed and global keys are collected in parallel, while the sha and last-updated-at keys still shell out to git and stat the deploy branch ref so their values are unchanged. The non-report git helpers such as fn-git-cmd and the computed deploy-branch and keep-git-dir getters remain in place for the build pipeline.
14 lines
417 B
Makefile
14 lines
417 B
Makefile
GOARCH ?= amd64
|
|
TRIGGERS = triggers/report
|
|
BUILD = report-subcommand triggers
|
|
PLUGIN_NAME = git
|
|
|
|
clean-report-subcommand:
|
|
rm -rf report-subcommand
|
|
|
|
report-subcommand: clean-report-subcommand src/subcommands/subcommands.go
|
|
GOARCH=$(GOARCH) go build -mod=readonly -ldflags="-s -w" $(GO_ARGS) -o report-subcommand src/subcommands/subcommands.go
|
|
ln -sf ../report-subcommand subcommands/report
|
|
|
|
include ../../common.mk
|