mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
chore: add commit info to regular build
This commit is contained in:
parent
337ed4a155
commit
0ee320491d
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue