codescalersinternships / Flyspray

Flyspray is a web-based bug tracking system
0 stars 0 forks source link

add version cmd #61

Closed rawdaGastan closed 10 months ago

rawdaGastan commented 10 months ago

Add a get version command for backend

Rodina222 commented 10 months ago

The server should be build as follows in order to get the latest version and commit of the app:

go build -ldflags "-X 'github.com/codescalersinternships/Flyspray/cmd.commit=$(shell git rev-parse --short HEAD)' -X 'github.com/codescalersinternships/Flyspray/cmd.version=$(shell git describe --abbrev=0 --tags)'"

Where,