chore: add commit info to regular build

This commit is contained in:
Jan De Dobbeleer 2021-11-27 13:36:54 +01:00 committed by Jan De Dobbeleer
parent 337ed4a155
commit 0ee320491d

2
.vscode/tasks.json vendored
View file

@ -16,7 +16,7 @@
"isDefault": true "isDefault": true
}, },
"problemMatcher": "$go", "problemMatcher": "$go",
"args": ["build", "-v"] "args": ["build", "-v", "-ldflags", "\"-X 'main.Version=development-$(git --no-pager log -1 --pretty=%h-%s)'\""]
}, },
{ {
"type": "shell", "type": "shell",