Commit ed2e0e2
committed
fix: correct version string for development builds
- Use git describe --exact-match to detect tagged commits
- Check for dirty working tree with git status --porcelain
- Use tag version ONLY if exact match AND clean working tree
- Otherwise fallback to v0.0.0-dev+<commit-hash> format
- Fixes issue where development builds showed old release tags1 parent ddf69bb commit ed2e0e2
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
26 | 37 | | |
27 | 38 | | |
28 | 39 | | |
| |||
0 commit comments