Skip to content

chore: inject version via ldflags instead of hardcoding #24

Description

@cameronsjo

Version string in main.go is hardcoded as v0.9.0. Should be injected at build time via -ldflags so it stays in sync with git tags.

Pattern:

var version = "dev"
LDFLAGS := -s -w -X main.version=$(shell git describe --tags --always)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions