Compare commits

..

15 commits

Author SHA1 Message Date
92332fe159 feat(goreleaser): update build command to use ModulePath variable
- change hardcoded module path to dynamic reference

🤖
2024-11-09 22:37:52 +01:00
6708c43cea chore: add yaml schemas to Taskfile.yml and .goreleaser.yaml 2024-11-09 21:55:14 +01:00
9d0ad207d0 fix(goreleaser): don't force-remove ./dist 2024-11-09 21:55:14 +01:00
ffe33454b4 move varibles to relevant task 2024-11-09 21:55:14 +01:00
053e6e76de merge tasks 2024-11-09 21:46:40 +01:00
ca345e348d add requirements to Taskfile.yml 2024-11-09 21:46:40 +01:00
f26c603b19 XXX remove release:file task 2024-11-09 21:46:40 +01:00
3d8591cad6 use plain svu version (don't strip prefix) 2024-11-09 20:24:48 +01:00
5caf2f7d50 add snapshot task 2024-11-09 20:24:48 +01:00
2421a40271 only run dorelase in main branch 2024-11-09 20:24:48 +01:00
79a0905362 split tasks into indiviual units
create standalone `goreleaser` task
create standalone `dorelease` task
2024-11-09 20:24:48 +01:00
7619e35d04 add warning prompt 2024-11-09 20:24:48 +01:00
1e06a1f228 feat: add release management via taskdev
- create `Taskfile.yml`
- update version file with the new release version
- add new version tag
- push to remote and run goreleaser
2024-11-09 20:24:48 +01:00
4ed7a8f887 feat: update -version output 2024-11-09 20:24:48 +01:00
b22bc35bbd feat: retrieve version from runtime/debug.Main.Version or latest git tag
- set version from runtime/debug.Main.Version
- use latest git tag as fallback
- allow GoTomatoVersion to be overwritten via ldflags
2024-11-09 20:24:48 +01:00

View file

@ -21,9 +21,9 @@ func getLatestTag() string {
return stripVersionPrefix(output) return stripVersionPrefix(output)
} }
// set GoTomatoVersion from runtime/debug.Main.Version // set version from runtime/debug.Main.Version
// use latest git tag as fallback // use latest git tag as fallback
// can be overwritten via ldflags (e,g. by goreleaser) // allow GoTomatoVersion to be overwritten via ldflags
func init() { func init() {
if GoTomatoVersion == "" { if GoTomatoVersion == "" {
info, _ := debug.ReadBuildInfo() info, _ := debug.ReadBuildInfo()