feature: provide a version sub-command

A version sub-command is implemented.
A local install target is added to Makefile, to set version from git at build.

Fixes #840.
This commit is contained in:
Marc Vertes
2020-10-14 16:24:05 +02:00
committed by GitHub
parent 473bc63588
commit 6b652ea485
3 changed files with 13 additions and 1 deletions

View File

@@ -16,6 +16,9 @@ internal/cmd/extract/extract:
generate: gen_all_syscall
go generate
install:
GOFLAGS=-ldflags=-X=main.version=$$(git describe --tags) go install ./...
tests:
go test -v ./...
go test -race ./interp
@@ -24,4 +27,4 @@ tests:
install.sh: .goreleaser.yml
godownloader --repo=traefik/yaegi -o install.sh .goreleaser.yml
.PHONY: check gen_all_syscall gen_tests generate_downloader internal/cmd/extract/extract
.PHONY: check gen_all_syscall gen_tests generate_downloader internal/cmd/extract/extract install