File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11CODE_COVERAGE_REPORT_FOLDER = $(PWD ) /build/test-coverage
22CODE_COVERAGE_REPORT_NAME_UNIT = $(CODE_COVERAGE_REPORT_FOLDER ) /coverage-unit-report
3+ VERSION_IMPORT_PATH = github.com/elastic/elastic-package/internal/version
34
45.PHONY : build
56
67build :
7- go get -ldflags " -X github.com/elastic/elastic-package/internal/version.CommitHash=` git describe --always --long --dirty` -X github.com/elastic/elastic-package/internal/version.BuildTime=` date +%s` " \
8+ go install -ldflags \
9+ " -X $( VERSION_IMPORT_PATH) .CommitHash=` git describe --always --long --dirty` -X $( VERSION_IMPORT_PATH) .BuildTime=` date +%s` -X $( VERSION_IMPORT_PATH) .Tag=` (git describe --exact-match --tags 2> /dev/null || echo ' ' ) | tr -d ' \n' ` " \
810 github.com/elastic/elastic-package
911
1012clean :
You can’t perform that action at this time.
0 commit comments