Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Version string in released binaries is missing the "v" #1150

@johananl

Description

@johananl

The binaries we release in official releases print a different version string than binaries built from the same Git tag using make. Building a binary from a certain Git revision should have a deterministic version string baked into it. It shouldn't matter exactly which command was used to build the binary.

Steps to reproduce:

wget https://github.com/kinvolk/lokomotive/releases/download/v0.5.0/lokoctl_0.5.0_linux_amd64.tar.gz
tar zxvf lokoctl_0.5.0_linux_amd64.tar.gz
./lokoctl_0.5.0_linux_amd64/lokoctl version

Output: 0.5.0

git clone https://github.com/kinvolk/lokomotive.git
cd lokomotive
git checkout v0.5.0
make
./lokoctl version

Output: v0.5.0

@iaguis @surajssd - your fingerprints are around this part of the codebase so tagging you for attention 🙂

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions