Skip to content

feat: manager-api need show version info #866

Closed
@starsz

Description

@starsz

Feature request

Please describe your feature

Hi, I think manager-api needs version info.

Like: ./manager-api version

And when manager-api start, show the manager-api version.

releated #853

Describe the solution you'd like

In golang, there are some ways to manage version.

  1. Create a file, named version.go and write the current version in this file.

  2. Use go build ldflags. Such as
    go build -ldflags "-X main.VERSION=1.0.0 -X 'main.BUILD_TIME=date' -X 'main.GO_VERSION=go version'"
    We can add this into Makefile.

I prefer the second solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions