mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-10-19 01:37:28 +00:00
feat(telemetry): switch to SendForModule for auto-version resolution
Replace telemetry.Send(name, PKG_VERSION) with telemetry.SendForModule
so the binary reports its release version automatically from
runtime/debug.BuildInfo whenever PKG_VERSION isn't injected (e.g.
`go install` without ldflags). The goreleaser path still wins because
goreleaser's -X main.PKG_VERSION={{.Version}} populates the fallback,
but `go install github.com/lukaszraczylo/[email protected]`
users now also get the correct version without ldflag plumbing.
Bumps oss-telemetry to v0.2.1.
This commit is contained in:
Reference in New Issue
Block a user